Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches

State hat
States a D-pad (also called a hat) can have More...

Typedefs

typedef enum JOYSTICK_STATE_HAT JOYSTICK_STATE_HAT
 

Enumerations

enum  JOYSTICK_STATE_HAT {
  JOYSTICK_STATE_HAT_UNPRESSED = 0x0 , JOYSTICK_STATE_HAT_LEFT = 0x1 , JOYSTICK_STATE_HAT_RIGHT = 0x2 , JOYSTICK_STATE_HAT_UP = 0x4 ,
  JOYSTICK_STATE_HAT_DOWN = 0x8 , JOYSTICK_STATE_HAT_LEFT_UP = JOYSTICK_STATE_HAT_LEFT | JOYSTICK_STATE_HAT_UP , JOYSTICK_STATE_HAT_LEFT_DOWN = JOYSTICK_STATE_HAT_LEFT | JOYSTICK_STATE_HAT_DOWN , JOYSTICK_STATE_HAT_RIGHT_UP = JOYSTICK_STATE_HAT_RIGHT | JOYSTICK_STATE_HAT_UP ,
  JOYSTICK_STATE_HAT_RIGHT_DOWN = JOYSTICK_STATE_HAT_RIGHT | JOYSTICK_STATE_HAT_DOWN
}
 

Detailed Description

State hat
States a D-pad (also called a hat) can have

Typedef Documentation

◆ JOYSTICK_STATE_HAT

Enumeration Type Documentation

◆ JOYSTICK_STATE_HAT

Enumerator
JOYSTICK_STATE_HAT_UNPRESSED 

no directions are pressed

JOYSTICK_STATE_HAT_LEFT 

only left is pressed

JOYSTICK_STATE_HAT_RIGHT 

only right is pressed

JOYSTICK_STATE_HAT_UP 

only up is pressed

JOYSTICK_STATE_HAT_DOWN 

only down is pressed

JOYSTICK_STATE_HAT_LEFT_UP 

left and up is pressed

JOYSTICK_STATE_HAT_LEFT_DOWN 

left and down is pressed

JOYSTICK_STATE_HAT_RIGHT_UP 

right and up is pressed

JOYSTICK_STATE_HAT_RIGHT_DOWN 

right and down is pressed