âŒ¨ī¸Input

Built-in Input library.

Static Functions:

.IsKeyDown

Input.IsKeyDown(key: VirtualKey): boolean

Argument
Type
Description

Returns true if key is currently pressed.

.GetKeyDownDuration

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

.GetMousePosition

Input.GetMousePosition(): Vector2

Returns Vector2 object which contains mouse position relative to game window.

Last updated

Was this helpful?