zenilib  0.5.3.0
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
SDL_JoyHatEvent Struct Reference

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

#include <SDL_events.h>

Public Attributes

Uint8 hat
 
Uint8 padding1
 
Uint8 padding2
 
Uint32 timestamp
 
Uint32 type
 
Uint8 value
 
SDL_JoystickID which
 

Detailed Description

Joystick hat position change event structure (event.jhat.*)

Definition at line 296 of file SDL_events.h.

Member Data Documentation

Uint8 SDL_JoyHatEvent::hat

The joystick hat index

Definition at line 301 of file SDL_events.h.

Referenced by SDL_GameControllerEventWatcher(), and SDLTest_PrintEvent().

Uint8 SDL_JoyHatEvent::padding1

Definition at line 309 of file SDL_events.h.

Uint8 SDL_JoyHatEvent::padding2

Definition at line 310 of file SDL_events.h.

Uint32 SDL_JoyHatEvent::timestamp

Definition at line 299 of file SDL_events.h.

Uint32 SDL_JoyHatEvent::type

SDL_JOYHATMOTION

Definition at line 298 of file SDL_events.h.

Uint8 SDL_JoyHatEvent::value

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 302 of file SDL_events.h.

Referenced by SDLTest_PrintEvent().

SDL_JoystickID SDL_JoyHatEvent::which

The joystick instance id

Definition at line 300 of file SDL_events.h.

Referenced by SDL_GameControllerEventWatcher(), and SDLTest_PrintEvent().


The documentation for this struct was generated from the following file: