Wiki Page Content

Differences between revisions 5 and 6
Revision 5 as of 2010-08-23 22:11:30
Size: 1668
Editor: SheenaSmith
Comment: added header-specific Category link
Revision 6 as of 2010-09-03 00:37:31
Size: 1662
Editor: SheenaSmith
Comment: update formatting - categories
Deletions are marked like this. Additions are marked like this.
Line 51: Line 51:
[[CategoryStruct]], [[CategoryEventsStruct]] [[CategoryStruct]], [[CategoryEvents]]

DRAFT

SDL_JoyHatEvent

A structure that contains joystick hat position change event structure information (event.jhat.*).

Data Fields

Uint32

type

SDL_JOYHATMOTION

Uint8

which

the joystick device index *the index of the joystick that reported the event*

Uint8

hat

the joystick hat index *the index of the hat*

Uint8

value

the hat position value *the current position of the hat*; see Remarks for details

Uint8

padding1

Code Examples

You can add your code example here

Remarks

value may be any of the following *a bitwise OR'd combination of* any of *the following*:

SDL_HAT_LEFTUP

SDL_HAT_UP

SDL_HAT_RIGHTUP

SDL_HAT_LEFT

SDL_HAT_CENTERED

SDL_HAT_RIGHT

SDL_HAT_LEFTDOWN

SDL_HAT_DOWN

SDL_HAT_RIGHTDOWN

Note that zero means the POV is centered.

-or-

SDL_HAT_LEFTUP

SDL_HAT_UP

SDL_HAT_RIGHTUP

SDL_HAT_LEFT

SDL_HAT_CENTERED

SDL_HAT_RIGHT

SDL_HAT_LEFTDOWN

SDL_HAT_DOWN

SDL_HAT_RIGHTDOWN

Note that zero means the POV is centered.

*
SDL_JoyHatEvent() is a member of the SDL_Event union and is used when an event of type SDL_JOYHATMOTION is reported.

A SDL_JOYHATMOTION event occurs whenever a user moves a hat on the joystick.
*


CategoryStruct, CategoryEvents

None: SDL_JoyHatEvent (last edited 2014-12-06 12:25:18 by PhilippWiesemann)

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