singleton class to map from buttons to actions Warning: not threadsafe!
More...
#include <ButtonTranslator.h>
|
static uint32_t | TranslateString (const std::string &strMap, const std::string &strButton) |
|
|
class | EVENTCLIENT::CEventButtonState |
|
singleton class to map from buttons to actions Warning: not threadsafe!
◆ GetAction()
CAction CButtonTranslator::GetAction |
( |
int |
window, |
|
|
const CKey & |
key, |
|
|
bool |
fallback = true |
|
) |
| |
Obtain the action configured for a given window and key.
- Parameters
-
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 |
- Returns
- the action matching the key
◆ HasLongpressMapping()
bool CButtonTranslator::HasLongpressMapping |
( |
int |
window, |
|
|
const CKey & |
key |
|
) |
| |
Finds out if a longpress mapping exists for this key.
- Parameters
-
window | id of the current window |
key | to search a mapping for |
- Returns
- true if a longpress mapping exists
The documentation for this class was generated from the following files: