#include <KeyboardTranslator.h>
Public Types | |
enum | KeyMap { KEYMAP_GERMAN = 1, KEYMAP_ENGLISH = 2, KEYMAP_FRENCH = 3 } |
Public Member Functions | |
KeyboardTranslator (KeyMap keymap=KEYMAP_ENGLISH) | |
Constructor. | |
virtual | ~KeyboardTranslator () |
Destructor. | |
void | translate (unsigned char key) |
Translation function. | |
unsigned char | getKey () |
Static Public Member Functions | |
static KeyboardTranslator * | getSingletonPtr (void) |
Singleton function. | |
static KeyboardTranslator & | getSingleton (void) |
Singleton function. | |
Private Attributes | |
KeyMap | mKeymap |
unsigned char | mKey |
unsigned char | mTranslatedKey |
|
|
|
Constructor.
|
|
Destructor.
|
|
|
|
Singleton function.
|
|
Singleton function.
|
|
Translation function. Here you can add your own keymaps, just copy from the if(){} above |
|
|
|
|
|
|