-
Notifications
You must be signed in to change notification settings - Fork 230
Inputs
Adrien GIVRY edited this page Sep 26, 2020
·
3 revisions
Some global inputs functions
This usertype has no variables
This usertype has no constructors
Name | Input | Output | Description |
---|---|---|---|
GetKeyDown |
Key : key |
boolean |
Returns true if the key has been pressed during the current frame |
GetKeyUp |
Key : key |
boolean |
Returns true if the key has been released during the current frame |
GetKey |
Key : key |
boolean |
Returns true if the key is currently down |
GetMouseButtonDown |
MouseButton : mouseButton |
boolean |
Returns true if the mouse button has been pressed during the current frame |
GetMouseButtonUp |
MouseButton : mouseButton |
boolean |
Returns true if the mouse button has been released during the current frame |
GetMouseButton |
MouseButton : mouseButton |
boolean |
Returns true if the mouse button is currently down |
GetMousePos | Vector2 |
Returns the current position of the mouse cursor | |
LockMouse | Locks and hides the mouse cursor | ||
UnlockMouse | Unlocks and shows the mouse cursor |
This usertype has no operators