#pragma section-numbers off #pragma disable-camelcase || DRAFT|| = SDL_JoystickGetButton = Use this function to get the current state of a button on a joystick. <> == Syntax == {{{#!highlight cpp Uint8 SDL_JoystickGetButton(SDL_Joystick* joystick, int button) }}} == Function Parameters == ||'''joystick'''||an SDL_Joystick structure containing joystick information|| ||'''button'''||the button index to get the state from; indices start at index 0|| == Return Value == Returns 1 if the specified button is pressed, 0 otherwise. == Code Examples == {{{#!highlight cpp You can add your code example here }}} == Remarks == ''You can add useful comments here'' == Related Functions == .[[SDL_JoystickNumButtons]] ---- [[CategoryAPI]], [[CategoryJoystick]]