Input
Built-in Input library.
Last updated
Built-in Input library.
Last updated
Input.IsKeyDown(key: VirtualKey)
: boolean
Argument | Type | Description |
---|
Returns true if key is currently pressed.
Input.GetKeyDownDuration(key: VirtualKey)
: boolean
Argument | Type | Description |
---|
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.
key | - |
key | - |