Keyboard
The Keyboard represents the keyboard inputs for the player.
Obtain Keyboard¶
1 | |
Methods¶
IsDown(keyCode)¶
Returns true|false if the key is down.
1 2 3 | |
AreAllDown(keyCodes...)¶
Returns true|false if all keys passed are down.
1 2 3 | |
AreAnyDown(keyCodes...)¶
Returns true|false if any keys passed are down.
1 2 3 | |
Events¶
KeyDown¶
Fires when a key is pressed.
1 2 3 | |
KeyUp¶
Fires when a key is released.
1 2 3 | |