Generic description of a keyboard event. More...
#include <common/common.hh>
Public Types | |
| enum | EventType { NO_EVENT, PRESS, RELEASE } |
| Key event types enumeration. More... | |
Public Member Functions | |
| KeyEvent () | |
| Constructor. More... | |
Public Attributes | |
| bool | alt |
| Was alt held during this key event? More... | |
| bool | control |
| Was control held during this key event? More... | |
| int | key |
| The raw value of the key pressed. More... | |
| bool | shift |
| Was shift held during this key event? More... | |
| std::string | text |
| Formatted string of the key pressed (could be uppercase). More... | |
| EventType | type |
| Event type. More... | |
Generic description of a keyboard event.
| enum EventType |
| KeyEvent | ( | ) |
Constructor.
| bool alt |
Was alt held during this key event?
| bool control |
Was control held during this key event?
| int key |
The raw value of the key pressed.
| bool shift |
Was shift held during this key event?
| std::string text |
Formatted string of the key pressed (could be uppercase).
| EventType type |
Event type.