Wiki Page Content

Differences between revisions 3 and 4
Revision 3 as of 2010-09-24 23:50:03
Size: 906
Editor: SheenaSmith
Comment: minor change
Revision 4 as of 2010-10-11 21:50:56
Size: 998
Editor: SheenaSmith
Comment: update content - pointers, structs
Deletions are marked like this. Additions are marked like this.
Line 17: Line 17:
||'''joystick'''||a pointer to a structure containing joystick information ???|| ||'''joystick'''||an SDL_Joystick structure containing joystick information ???||
Line 19: Line 19:

<<Color2(green,Is it possible to use more than one index at a time for '''button'''?)>>

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

green

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