Kodi Development  20.0
for Binary and Script based Add-Ons

Detailed Description

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

Modules

 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]. More...
 
typedef float JOYSTICK_STATE_MOTOR
 Motor value in the closed interval [0.0, 1.0]. More...
 

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