#include <HotkeyHandler.h>
|
bool | handleKey (char c, XPLMKeyFlags flags, char virtualKey) |
|
|
static int | keyCallback (char c, XPLMKeyFlags flags, char virtualKey, void *refCon) |
|
The handler for hotkeys.
Definition at line 58 of file HotkeyHandler.h.
◆ hotkeySets_t
◆ HotkeyHandler()
HotkeyHandler::HotkeyHandler |
( |
| ) |
|
◆ handleKey()
bool HotkeyHandler::handleKey |
( |
char |
c, |
|
|
XPLMKeyFlags |
flags, |
|
|
char |
virtualKey |
|
) |
| |
|
protected |
Handle the given hotkey code.
- Returns
- true if the hotkey was handled, false otherwise.
Definition at line 136 of file HotkeyHandler.cc.
◆ keyCallback()
int HotkeyHandler::keyCallback |
( |
char |
c, |
|
|
XPLMKeyFlags |
flags, |
|
|
char |
virtualKey, |
|
|
void * |
refCon |
|
) |
| |
|
staticprivate |
The callback function receiving the keypresses.
Definition at line 102 of file HotkeyHandler.cc.
◆ registerHotkeys()
void HotkeyHandler::registerHotkeys |
( |
Hotkeys * |
hotkeys | ) |
|
◆ unregisterHotkeys()
void HotkeyHandler::unregisterHotkeys |
( |
Hotkeys * |
hotkeys | ) |
|
◆ hotkeySets
◆ mutex
hu::varadiistvan::scpl::Mutex xplra::HotkeyHandler::mutex |
|
private |
Mutex to protect some common data structures.
Definition at line 133 of file HotkeyHandler.h.
The documentation for this class was generated from the following files: