Wiki Page Content

Differences between revisions 11 and 12
Revision 11 as of 2013-06-12 21:25:04
Size: 1212
Comment: Updated types to match SDL_events.h.
Revision 12 as of 2013-09-05 20:29:33
Size: 1473
Comment: Updated structure.
Deletions are marked like this. Additions are marked like this.
Line 11: Line 11:
||Uint32||'''timestamp'''||timestamp of the event||
Line 14: Line 15:
||<style="color: #808080;">Uint8||<style="color: #808080;">'''padding1'''||<style="color: #808080;">||
||<style="color: #808080;">Uint8||<style="color: #808080;">'''padding2'''||<style="color: #808080;">||

SDL_JoyButtonEvent

A structure that contains joystick button event information.

Data Fields

Uint32

type

the event type; SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP

Uint32

timestamp

timestamp of the event

SDL_JoystickID

which

the index of the joystick that reported the event

Uint8

button

the index of the button that changed

Uint8

state

the state of the button; SDL_PRESSED or SDL_RELEASED

Uint8

padding1

Uint8

padding2

Code Examples

You can add your code example here

Remarks

SDL_JoyButtonEvent is a member of the SDL_Event union and is used when an event of type SDL_JOYBUTTONDOWN or SDL_JOYBUTTONUP is reported. You would access it through the event's jbutton field.

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