Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2013-09-01 18:34:10
Size: 1009
Comment: Updated usage of Color2 macro.
Revision 6 as of 2014-01-11 19:32:28
Size: 993
Comment: Removed * and BR.
Deletions are marked like this. Additions are marked like this.
Line 23: Line 23:
*<<BR>>Returns 1 if the specified button is pressed, 0 otherwise.<<BR>>* Returns 1 if the specified button is pressed, 0 otherwise.
Line 34: Line 34:
 .[[SDL_JoystickNumButtons]] *  .[[SDL_JoystickNumButtons]]

DRAFT

SDL_JoystickGetButton

Use this function to get the current state of a button on a joystick.

Syntax

Uint8 SDL_JoystickGetButton(SDL_Joystick* joystick,
                            int           button)

Function Parameters

joystick

an SDL_Joystick structure containing joystick information ???

button

the button indices index; starts at index 0

Is it possible to use more than one index at a time for button?

Return Value

Returns 1 if the specified button is pressed, 0 otherwise.

Code Examples

You can add your code example here

Remarks

You can add useful comments here


CategoryAPI, CategoryJoystick

None: SDL_JoystickGetButton (last edited 2015-05-31 19:40:12 by PhilippWiesemann)

(Page Info.)
Feedback
Please include your contact information if you'd like to receive a reply.
Submit