Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
JoystickTypes.h File Reference
#include "input/InputTypes.h"
#include <set>
#include <string>

Namespaces

namespace  KODI
 
namespace  KODI::JOYSTICK
 

Typedefs

using KODI::JOYSTICK::FeatureName = std::string
 Name of a physical feature belonging to the joystick.
 
using KODI::JOYSTICK::HAT_DIRECTION = INPUT::CARDINAL_DIRECTION
 Direction arrows on the hat (directional pad)
 
using KODI::JOYSTICK::HAT_STATE = INPUT::INTERCARDINAL_DIRECTION
 States in which a hat can be.
 
using KODI::JOYSTICK::ANALOG_STICK_DIRECTION = INPUT::CARDINAL_DIRECTION
 Typedef for analog stick directions.
 
using KODI::JOYSTICK::RELATIVE_POINTER_DIRECTION = INPUT::CARDINAL_DIRECTION
 Directions of motion for a relative pointer.
 

Enumerations

enum class  KODI::JOYSTICK::FEATURE_TYPE {
  KODI::JOYSTICK::UNKNOWN , KODI::JOYSTICK::SCALAR , KODI::JOYSTICK::ANALOG_STICK , KODI::JOYSTICK::ACCELEROMETER ,
  KODI::JOYSTICK::MOTOR , KODI::JOYSTICK::RELPOINTER , KODI::JOYSTICK::ABSPOINTER , KODI::JOYSTICK::WHEEL ,
  KODI::JOYSTICK::THROTTLE , KODI::JOYSTICK::KEY
}
 Types of features used in the joystick library. More...
 
enum class  KODI::JOYSTICK::FEATURE_CATEGORY {
  KODI::JOYSTICK::UNKNOWN , KODI::JOYSTICK::FACE , KODI::JOYSTICK::SHOULDER , KODI::JOYSTICK::TRIGGER ,
  KODI::JOYSTICK::ANALOG_STICK , KODI::JOYSTICK::ACCELEROMETER , KODI::JOYSTICK::HAPTICS , KODI::JOYSTICK::MOUSE_BUTTON ,
  KODI::JOYSTICK::POINTER , KODI::JOYSTICK::LIGHTGUN , KODI::JOYSTICK::OFFSCREEN , KODI::JOYSTICK::KEY ,
  KODI::JOYSTICK::KEYPAD , KODI::JOYSTICK::HARDWARE , KODI::JOYSTICK::WHEEL , KODI::JOYSTICK::JOYSTICK ,
  KODI::JOYSTICK::PADDLE
}
 Categories of features used in the joystick library. More...
 
enum class  KODI::JOYSTICK::SEMIAXIS_DIRECTION { KODI::JOYSTICK::NEGATIVE = -1 , KODI::JOYSTICK::ZERO = 0 , KODI::JOYSTICK::POSITIVE = 1 }
 Directions in which a semiaxis can point. More...
 
enum class  KODI::JOYSTICK::WHEEL_DIRECTION { KODI::JOYSTICK::NONE , KODI::JOYSTICK::RIGHT , KODI::JOYSTICK::LEFT }
 Directions on a wheel. More...
 
enum class  KODI::JOYSTICK::THROTTLE_DIRECTION { KODI::JOYSTICK::NONE , KODI::JOYSTICK::UP , KODI::JOYSTICK::DOWN }
 Directions on a throttle. More...
 
enum class  KODI::JOYSTICK::INPUT_TYPE { KODI::JOYSTICK::UNKNOWN , KODI::JOYSTICK::DIGITAL , KODI::JOYSTICK::ANALOG }
 Types of input available for scalar features. More...
 
enum class  KODI::JOYSTICK::PRIMITIVE_TYPE {
  KODI::JOYSTICK::UNKNOWN = 0 , KODI::JOYSTICK::BUTTON , KODI::JOYSTICK::HAT , KODI::JOYSTICK::SEMIAXIS ,
  KODI::JOYSTICK::MOTOR , KODI::JOYSTICK::KEY , KODI::JOYSTICK::MOUSE_BUTTON , KODI::JOYSTICK::RELATIVE_POINTER
}
 Type of driver primitive. More...