Data Fields | |
int | type |
Event type (E_KEY_PRESS). | |
Window | window |
Window which the event is directed to. | |
unsigned int | state |
Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask). | |
unsigned int | keycode |
Code for the pressed key. |
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.
|
Code for the pressed key.
|
|
Bitmask of the state of modifier keys (ShiftMask, LockMask, ControlMask, AltMask).
|
|
Event type (E_KEY_PRESS).
|
|
Window which the event is directed to.
|