Input
The Quick Reference for Input just lists all methods available to be registered for input.
Remember: In order to register input methods, screen.listen()
must be called after your methods in your program!
All Input Methods
mousedown
| When the mouse is pressed or is held, this will be calledmouseup
| When the mouse is released this is calledmousedrag
| When the mouse is dragged, this is called anytime the mouse moves and is held.mousemove
| When the mouse moves, this method is called.keydown
| When a key is pressed or is currently being held, this is calledkeyup
| When a key is released this is calledexit
| Called when the Screen is abruptly closed orscreen.exit()
is called.
Example
Last updated