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, otherwise0
.- Parameter button
The button index.
- Returns
The current state of the given button.
- See also