Wiki Page Content

Differences between revisions 7 and 8
Revision 7 as of 2015-05-31 18:36:06
Size: 891
Comment: Removed green comment, it is only possible to query one button at a time.
Revision 8 as of 2015-05-31 18:39:21
Size: 904
Comment: Removed old formatting and corrected description.
Deletions are marked like this. Additions are marked like this.
Line 18: Line 18:
||'''button'''||the button ,,indices,, ^index;^ start^s^ at index 0|| ||'''button'''||the button index to get the state from; indices start at index 0||

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 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

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