Laxkit
0.0.7.1
|
Av event filter windows can use to detect keyboard shortcuts. More...
Public Member Functions | |
virtual int | ClearShortcut (unsigned int key, unsigned int state) |
virtual int | ClearShortcut (const char *keys, unsigned int *states, int n) |
virtual unsigned int | Shortcut (unsigned int key, unsigned int state, unsigned int action, unsigned int mode) |
virtual unsigned int | ShortcutChain (const char *keys, unsigned int *states, int n, unsigned int action, unsigned int mode) |
virtual int | eventFilter (EventData **events_ret, EventData *e, anXWindow *window) |
Filter events for shortcuts. | |
Public Member Functions inherited from EventFilter | |
virtual int | eventFilter (EventData **events_ret, EventData *event, anXWindow *target, int &isinput)=0 |
Protected Attributes | |
PtrStack< ShortcutDef > | shortcuts |
int | index |
int | keyindex |
int | deviceid |
Additional Inherited Members | |
Public Attributes inherited from EventFilter | |
EventFilter * | next |
Av event filter windows can use to detect keyboard shortcuts.
|
virtual |
Filter events for shortcuts.
Returns 0 for event ignored. events_ret will be set to NULL. Return -1 for event absorbed, but they may be released in the future. Return 1 for events released. Return 2 for shortcut found and SimpleMessage(NULL,action,0,0,0, LAX_ShortcutEvent) is returned.
The previous contents of events_ret are overwritten.