Kodi Documentation 22.0
Kodi is an open source media player and entertainment hub.
Loading...
Searching...
No Matches
PERIPHERALS::CAndroidJoystickTranslator Class Reference

#include <AndroidJoystickTranslator.h>

Static Public Member Functions

static const char * TranslateAxis (int axisId)
 Translate an axis ID to an Android enum suitable for logging.
 
static const char * TranslateKeyCode (int keyCode)
 Translate a key code to an Android enum suitable for logging.
 

Member Function Documentation

◆ TranslateAxis()

const char * CAndroidJoystickTranslator::TranslateAxis ( int axisId)
static

Translate an axis ID to an Android enum suitable for logging.

Parameters
axisIdThe axis ID given in <android/input.h>
Returns
The translated enum label, or "unknown" if unknown

◆ TranslateKeyCode()

const char * CAndroidJoystickTranslator::TranslateKeyCode ( int keyCode)
static

Translate a key code to an Android enum suitable for logging.

Parameters
keyCodeThe key code given in <android/keycodes.h>
Returns
The translated enum label, or "unknown" if unknown

The documentation for this class was generated from the following files: