Input
Built-in Input library.
Last updated
Built-in Input library.
Last updated
Input.IsKeyDown(key: VirtualKey)
: boolean
key
-
Returns true if key is currently pressed.
Input.GetKeyDownDuration(key: VirtualKey)
: boolean
key
-
Returns float value in seconds for how long is key pressed, if key is not pressed the value will be -1.0
Input.GetMousePosition()
: Vector2
Returns Vector2 object which contains mouse position relative to game window.