SDL_GetJoystickButton

Get the current state of a button on a joystick.

extern (C) nothrow @nogc extern
bool
SDL_GetJoystickButton

Parameters

joystick SDL_Joystick*

an SDL_Joystick structure containing joystick information.

button int

the button index to get the state from; indices start at index 0.

Return Value

Type: bool

true if the button is pressed, false otherwise.

See Also

Meta