Input
class in Input
Description
Utility class to poll player input events
Constants
Name | Type | Value | Description |
---|---|---|---|
MouseLeft | int | 0 | Left Mouse Button ID |
MouseRight | int | 1 | |
MouseMiddle | int | 2 | |
MouseBack | int | 3 | |
MouseForward | int | 4 |
Static Properties
Static Methods
Return Type | Signature | Description |
---|---|---|
bool | is_mouse_button_down ( int button ) | is mouse button with ID |
bool | is_mouse_button_up ( int button ) | |
bool | is_mouse_button_pressed ( int button ) | |
bool | is_key_down ( KeyCode key ) | |
bool | is_key_up ( KeyCode key ) | |
bool | is_key_pressed ( KeyCode key ) |