SDL  2.0
SDL_JoyHatEvent Struct Reference

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

#include <SDL_events.h>

Data Fields

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

Detailed Description

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

Definition at line 332 of file SDL_events.h.

Field Documentation

Uint8 SDL_JoyHatEvent::hat

The joystick hat index

Definition at line 337 of file SDL_events.h.

Referenced by loop(), SDL_GameControllerEventWatcher(), SDLTest_PrintEvent(), and WatchJoystick().

Uint8 SDL_JoyHatEvent::padding1

Definition at line 345 of file SDL_events.h.

Uint8 SDL_JoyHatEvent::padding2

Definition at line 346 of file SDL_events.h.

Uint32 SDL_JoyHatEvent::timestamp

In milliseconds, populated using SDL_GetTicks()

Definition at line 335 of file SDL_events.h.

Uint32 SDL_JoyHatEvent::type

SDL_JOYHATMOTION

Definition at line 334 of file SDL_events.h.

Uint8 SDL_JoyHatEvent::value
SDL_JoystickID SDL_JoyHatEvent::which

The joystick instance id

Definition at line 336 of file SDL_events.h.

Referenced by loop(), SDL_GameControllerEventWatcher(), SDLTest_PrintEvent(), and WatchJoystick().


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