SDL Library

Dependents:   H261_decoder

Embed: (wiki syntax)

« Back to documentation index

SDL_JoyHatEvent Struct Reference

SDL_JoyHatEvent Struct Reference

Joystick hat position change event structure (event.jhat. More...

#include <SDL_events.h>

Data Fields

Uint32 type
 SDL_JOYHATMOTION
SDL_JoystickID which
 The joystick instance id.
Uint8 hat
 The joystick hat index.
Uint8 value
 The hat position value.

Detailed Description

Joystick hat position change event structure (event.jhat.

*)

Definition at line 299 of file SDL_events.h.


Field Documentation

The joystick hat index.

Definition at line 304 of file SDL_events.h.

SDL_JOYHATMOTION

Definition at line 301 of file SDL_events.h.

The hat position value.

See also:
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.

Definition at line 305 of file SDL_events.h.

SDL_JoystickID which

The joystick instance id.

Definition at line 303 of file SDL_events.h.