Wiki Page Content

Differences between revisions 8 and 9
Revision 8 as of 2011-01-17 17:29:56
Size: 1044
Editor: SheenaSmith
Comment: update content - w/ Sam; remove draft
Revision 9 as of 2011-01-17 17:56:16
Size: 1095
Editor: SheenaSmith
Comment: add RE
Deletions are marked like this. Additions are marked like this.
Line 25: Line 25:
== Related Enumerations ==
 .[[SDL_EventType]]

SDL_JoyButtonEvent

A structure that contains joystick button event information.

Data Fields

Uint32

type

SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP

Uint8

which

the index of the joystick that reported the event

Uint8

button

the index of the button that changed

Uint8

state

SDL_PRESSED or SDL_RELEASED

Code Examples

You can add your code example here

Remarks

SDL_JoyButtonEvent is a member of the SDL_Event structure and is used when an event of type SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP is reported.

An SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP event occurs whenever a user presses or releases a button on a joystick.


CategoryStruct, CategoryEvents

None: SDL_JoyButtonEvent (last edited 2014-12-06 12:24:54 by PhilippWiesemann)

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