#include <omKeyboardDriver.h>
Inheritance diagram for omKeyboardDriver:
Public Member Functions | |
omKeyboardDriver (omObject *, omObject *, int, long, long, long, long, long, bool, bool) | |
~omKeyboardDriver () | |
void | SetOnPress (bool) |
void | SetGrabKeys (bool) |
void | Start () |
void | Stop () |
void | GrabActionKeys () |
void | UngrabActionKeys () |
This function is used to ungrab the control of the action keys. | |
void | FlushKeysState () |
Data Fields | |
omObject * | toInform |
Object to send event to. | |
omObject * | executorController |
Object that controls the OpenMAIA executor class. | |
Private Member Functions | |
void | Notify () |
override the Notify method of the wxTimer parent | |
void | SystemDependentConstructor () |
System dependent part of constructor see in x11 or windows folder. | |
void | SystemDependentNotify () |
System dependent notify method. | |
void | SDFlushKey (long, bool *) |
System dependent flush key method. | |
void | SDGrabActionKeys () |
System dependent GrabActionKey method. | |
void | SDUngrabActionKeys () |
System dependent UngrabActionKey method. | |
void | SDFlushKeysState () |
System dependent FlushKeysState method. | |
void | SDDestructor () |
System dependent Destructor. | |
Private Attributes | |
long | actionKey |
OpenMAIA ACTION key code. | |
long | upKey |
OpenMAIA UP key code. | |
long | downKey |
OpenMAIA DOWN key code.,. | |
long | leftKey |
OpenMAIA LEFT key code. | |
long | rightKey |
OpenMAIA RIGHT key code. | |
bool | grabKeys |
Flag. | |
bool | actionOnPress |
Flag. | |
void * | systemDependentData |
long | maiaKeyCode [MAXMAIACODES] |
Keycodes hash table. | |
int | tickTime |
Timer period. |
This class is a driver used to interface a standard keyboard with the OpenMAIA system.
Some keys of a standard keyboard can be used to generate events for OpenMAIA Applications.
This driver can handle the status of 5 keys and generate OpenMAIA events to an object according with these keys status.
The code of the keys used to generate events is passed via the constructor of the class according with OpenMAIA Key codes avaiable in the omemukeys.h header file.
|
Initialize the class.
|
|
The destructor releases grabbed keys of the keyboard for further use |
|
Flush the state of control keys. |
|
This function is used to grab the control of all action keys. Avaiable only in windows. |
|
override the Notify method of the wxTimer parent
|
|
System dependent Destructor.
|
|
System dependent flush key method.
|
|
System dependent FlushKeysState method.
|
|
System dependent GrabActionKey method.
|
|
System dependent UngrabActionKey method.
|
|
Set GrabKeys flag.
|
|
Set OnPress flag
|
|
Start event pooling with the time interval specified in the constructor Reimplemented from omObject. |
|
Start event pooling with the time interval specified in the constructor Reimplemented from omObject. |
|
System dependent part of constructor see in x11 or windows folder.
|
|
System dependent notify method.
|
|
This function is used to ungrab the control of the action keys.
|
|
OpenMAIA ACTION key code.
|
|
Flag.
|
|
OpenMAIA DOWN key code.,.
|
|
Object that controls the OpenMAIA executor class.
|
|
Flag.
|
|
OpenMAIA LEFT key code.
|
|
Keycodes hash table.
|
|
OpenMAIA RIGHT key code.
|
|
System dependent data structure defined in x11 or windows folder. |
|
Timer period.
|
|
Object to send event to.
|
|
OpenMAIA UP key code.
|
Copyright © by Luca Clivio |