Key Class
Key is used by Keyboard, Mouse, etc, to represent a key state.
Item Index
Properties
Methods
reset
()
Reset key to default values.
set
()
Set this key attributes manually.
update
()
Update Key status based on new key state.
Properties
justPressed
Boolean
Indicates if this key was just pressed.
Default: false
justReleased
Boolean
Indicates if this key was just released.
Default: false
pressed
Boolean
Indicates if this key is currently pressed.
Default: false