Back to class index
Input[Class Summary]
EventTriggered
numMouseButtons[static][const]
ctor
~dtor
OnNewFrameStarted()
OnNewInputEvent(e)
IsKeyPressed(keyCode)
IsKeyDown(keyCode)
IsKeyReleased(keyCode)
ClearKeyHeldDown(keyCode)
KeyNumFramesHeldDown(keyCode)
KeyTimePressed(keyCode)
HeldDownKeys()
IsMouseButtonPressed(button)
IsMouseButtonDown(button)
IsMouseButtonReleased(button)
NumMouseButtonsHeldDown()[const]
MouseButtonNumFramesHeldDown(button)
MouseButtonTimePressed(button)
MousePos()
MouseButtonPressPos(button)
MouseDelta()
MouseDragDelta(button)
MouseWheelDelta()[const]
HeldDownMouseButtons()[const]
MouseButtonState()
NumTouchPoints()[const]
NumTouchPointsHeldDown()
NumTouchPointsPressed()
NumTouchPointsReleased()
TouchPointIDs()[const]
PressedTouchPointIDs()[const]
HeldTouchPointIDs()[const]
ReleasedTouchPointIDs()[const]
HeldTouchPointID(touchPointIndex)
HeldTouchPointIndex(touchPointID)
TouchPointByIndex(touchPointIndex)
TouchPointByID(touchPointID)
TouchPointState()

Input::KeyTimePressed

Syntax

tick_t Input::KeyTimePressed(KeyCode keyCode);

Returns the wallclock tick time the given key code was pressed down.

Don't call if the given key is not being held down! I.e. call IsKeyDown() to check first. If the given key is not currently held down, returns 0.

Leave a Comment

Name:
Comments:
Captcha:captcha image Type in the black symbols:
Back to class index