Wiki Page Content

Revision 2 as of 2010-08-28 17:25:36

Clear message

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

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