35 public:
KeyEvent() : type(NO_EVENT), key(0), text(
""), control(false),
36 shift(false), alt(false) {}
KeyEvent()
Constructor.
Definition: KeyEvent.hh:35
std::string text
Formatted string of the key pressed (could be uppercase).
Definition: KeyEvent.hh:48
Generic description of a keyboard event.
Definition: KeyEvent.hh:32
EventType type
Event type.
Definition: KeyEvent.hh:42
EventType
Key event types enumeration.
Definition: KeyEvent.hh:39
#define GZ_COMMON_VISIBLE
Definition: system.hh:91
bool alt
Was alt held during this key event?
Definition: KeyEvent.hh:57
bool shift
Was shift held during this key event?
Definition: KeyEvent.hh:54
int key
The raw value of the key pressed.
Definition: KeyEvent.hh:45
bool control
Was control held during this key event?
Definition: KeyEvent.hh:51