Skip to content

Mojo input joystick buttonpressed

mojo:mojo.input.Joystick.ButtonPressed

Method ButtonPressed:Bool( button:Int )#

Checks if a button has been pressed.

The button parameter must be in the range 0 (inclusive) to NumButtons (exclusive).

Returns true if button has been pressed since the last call to ButtonPressed.