Optional
fnEquivalent to onDownContinuous. Use either that or onDown, onPress, onUp instead.
The id of the key binding, for use when updating.
Note: In versions before 8.2.0, name
was used as the id.
The key associated with the binding.
Optional
nameThe name of the key binding. You can use this for display purposes. Note: In versions before 8.2.0, this was used as the id.
Optional
onThe function executed when the binding is pressed down. Uses the default "keydown" event (which is called once when the key is pressed down, has a slight delay, and then repeats if held down for a while).
Optional
onA function that is executed every frame while the binding is being pressed.
The time since the last frame, in milliseconds.
Optional
onThe function executed when the binding is being pressed.
Optional
onThe function executed when the binding is released.
The key binding interface.