_csKeyModifiers Struct Reference
[Event handling]
Flags for all currently pressed modifiers.
More...
#include <evdefs.h>
Public Attributes | |
| unsigned int | modifiers [csKeyModifierTypeLast] |
| Bitmasks for different modifiers. | |
Detailed Description
Flags for all currently pressed modifiers.
Definition at line 213 of file evdefs.h.
Member Data Documentation
|
|
Bitmasks for different modifiers. If the modifier number n was pressed, the nth bit is set. Example - testing for a specific modifier: csKeyModifiers m; bool rightAlt = m.modifiers[csKeyModifierTypeAlt] & (1 << csKeyModifierNumRight); csKeyModifiers m; bool ctrl = m.modifiers[csKeyModifierTypeAlt] != 0; |
The documentation for this struct was generated from the following file:
- iutil/evdefs.h
Generated for Crystal Space by doxygen 1.2.18
