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

#include <MouseTranslator.h>

Static Public Member Functions

static uint32_t TranslateCommand (const tinyxml2::XMLElement *pButton)
 Translate a keymap element to a key ID.
 
static bool TranslateEventID (unsigned int eventId, KODI::MOUSE::BUTTON_ID &buttonId)
 Translate a mouse event ID to a mouse button index.
 

Member Function Documentation

◆ TranslateCommand()

uint32_t CMouseTranslator::TranslateCommand ( const tinyxml2::XMLElement * pButton)
static

Translate a keymap element to a key ID.

◆ TranslateEventID()

bool CMouseTranslator::TranslateEventID ( unsigned int eventId,
KODI::MOUSE::BUTTON_ID & buttonId )
static

Translate a mouse event ID to a mouse button index.

Parameters
eventIdThe event ID from MouseStat.h
[out]buttonIdThe button ID from MouseTypes.h, or unmodified if unsuccessful
Returns
True if successful, false otherwise

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