mojo.input.Joystick.ButtonDown - nitrologic/monkey2 GitHub Wiki

mojo::mojo.input.mojo.input.Joystick.ButtonDown

Method ButtonDown:monkey:monkey.types.Bool( button:monkey:monkey.types.Int )

Gets button up/down state.

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

The returned value is true if button is down, else false.