Wiki Page Content

Differences between revisions 1 and 2
Revision 1 as of 2010-03-18 01:47:54
Size: 860
Editor: SheenaSmith
Comment: create page, add content (Rev 5540)
Revision 2 as of 2010-08-28 17:25:36
Size: 895
Editor: SheenaSmith
Comment: update content (old wiki)
Deletions are marked like this. Additions are marked like this.
Line 21: Line 21:
The value indicating the state of the specified button ??? ^Returns 1 if the specified button is pressed, 0 otherwise.^*
Line 32: Line 32:
 .[[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

a pointer to a structure containing joystick information ???

button

the button indices index; starts 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