Pike v8.1 release 6

Method SDL.Joystick()->get_button()


Method get_button

int get_button(int button)

Description

Returns the current state of the given button.

This is 1 if the button is pressed, otherwise 0.

Parameter button

The button index.

Returns

The current state of the given button.

See also

num_buttons()