|
Kodi Documentation 18.0
Kodi is an open source media player and entertainment hub.
|
#include <ButtonTranslator.h>
Public Member Functions | |
| CButtonTranslator () | |
| CButtonTranslator (const CButtonTranslator &)=delete | |
| CButtonTranslator const & | operator= (CButtonTranslator const &)=delete |
| virtual | ~CButtonTranslator () |
| bool | AddDevice (const std::string &strDevice) |
| bool | RemoveDevice (const std::string &strDevice) |
| bool | Load () |
| loads Keymap.xml More... | |
| void | Clear () |
| clears the maps More... | |
| bool | HasLongpressMapping (int window, const CKey &key) |
| Finds out if a longpress mapping exists for this key. More... | |
| CAction | GetAction (int window, const CKey &key, bool fallback=true) |
| Obtain the action configured for a given window and key. More... | |
| void | RegisterMapper (const std::string &device, IButtonMapper *mapper) |
| void | UnregisterMapper (IButtonMapper *mapper) |
Friends | |
| class | EVENTCLIENT::CEventButtonState |
singleton class to map from buttons to actions Warning: not threadsafe!
| CButtonTranslator::CButtonTranslator | ( | ) |
|
delete |
|
virtual |
| bool CButtonTranslator::AddDevice | ( | const std::string & | strDevice | ) |
| void CButtonTranslator::Clear | ( | ) |
clears the maps
Obtain the action configured for a given window and key.
| window | the window id |
| key | the key to query the action for |
| fallback | if no action is directly configured for the given window, obtain the action from fallback window, if exists or from global config as last resort |
| bool CButtonTranslator::HasLongpressMapping | ( | int | window, |
| const CKey & | key | ||
| ) |
Finds out if a longpress mapping exists for this key.
| window | id of the current window |
| key | to search a mapping for |
| bool CButtonTranslator::Load | ( | ) |
loads Keymap.xml
|
delete |
| void CButtonTranslator::RegisterMapper | ( | const std::string & | device, |
| IButtonMapper * | mapper | ||
| ) |
| bool CButtonTranslator::RemoveDevice | ( | const std::string & | strDevice | ) |
| void CButtonTranslator::UnregisterMapper | ( | IButtonMapper * | mapper | ) |
|
friend |