Wiki Page Content

Revision 2 as of 2010-07-28 18:32:25

Clear message

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

Uint8

hat

the joystick hat index

Uint8

value

the hat position value; see Remarks for details

Uint8

padding1

Code Examples

You can add your code example here

Remarks

value may be 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.


CategoryStruct

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