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

Event add-on operation variables
Used to exchange the available options between Kodi and addon. More...

Topics

 enum PERIPHERAL_EVENT_TYPE
 Event types
Types of events that can be sent and received.
 
 enum JOYSTICK_STATE_BUTTON
 State button
States a button can have
 
 enum JOYSTICK_STATE_HAT
 State hat
States a D-pad (also called a hat) can have
 

Typedefs

typedef float JOYSTICK_STATE_AXIS
 Axis value in the closed interval [-1.0, 1.0].
 
typedef float JOYSTICK_STATE_MOTOR
 Motor value in the closed interval [0.0, 1.0].
 

Detailed Description

Event add-on operation variables
Used to exchange the available options between Kodi and addon.

Typedef Documentation

◆ JOYSTICK_STATE_AXIS

typedef float JOYSTICK_STATE_AXIS

Axis value in the closed interval [-1.0, 1.0].

The axis state uses the XInput coordinate system:

  • Negative values signify down or to the left
  • Positive values signify up or to the right

◆ JOYSTICK_STATE_MOTOR

typedef float JOYSTICK_STATE_MOTOR

Motor value in the closed interval [0.0, 1.0].