DAS
3.1.6 - 18/09/2017
|
#include <Mguidefs.h>
Data Fields | |
unsigned int | keycode |
Code for the pressed key. More... | |
unsigned int | state |
Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask) More... | |
int | type |
Event type (E_KEY_PRESS) More... | |
Window | window |
Window which the event is directed to. More... | |
Keyboard event. The windowing system generates this event as the user presses a key in the keyboard. The event is bound, via field window, to the top level window of the application currently owning the input focus. The event is passed to the SHELL object bound to the focused window and then routed to the MGui object that actually owns the input focus.
It's possible to send directly this event to an MGui object, via MDispatchObjEvent() or CmObject::sendEvent, to simulate key presses forcing an object to act consequently. In this case, the window field is not relevant and can be set to anything. Other fields should instead be set to correct values.
Definition at line 533 of file Mguidefs.h.
unsigned int MKeyEvent::keycode |
Code for the pressed key.
Definition at line 541 of file Mguidefs.h.
Referenced by ColorMapInputCB(), DB_Ask_SheelESC(), DB_FilSelButtKB_CB(), DB_HomeSelButtKB_CB(), DB_KeyComSelButtKB_CB(), DB_MirSelButtKB_CB(), DB_NDFilSelButtKB_CB(), DB_SelButt_CB(), DB_SheelESC(), and DB_WlSelButtKB_CB().
unsigned int MKeyEvent::state |
Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask)
Definition at line 539 of file Mguidefs.h.
int MKeyEvent::type |
Event type (E_KEY_PRESS)
Definition at line 535 of file Mguidefs.h.
Window MKeyEvent::window |
Window which the event is directed to.
Definition at line 537 of file Mguidefs.h.