My Project
Loading...
Searching...
No Matches
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.*)

Field Documentation

◆ hat

Uint8 hat

The joystick hat index

◆ timestamp

Uint32 timestamp

In milliseconds, populated using SDL_GetTicks()

◆ type

Uint32 type

◆ value

Uint8 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.

◆ which

The joystick instance id


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