1 #ifndef Rag_KeyboardEvent_h
2 #define Rag_KeyboardEvent_h
9 static const std::string KEY_DOWN =
"KeyDown";
10 static const std::string KEY_UP =
"KeyUp";
25 std::ostringstream oss;
26 oss <<
"(key = " << key <<
", charCode=" << charCode <<
")";
virtual std::string toString()
String representation of the event.
Definition: KeyboardEvent.h:23
Base class for event system.
Definition: Event.h:24
int charCode
Character code.
Definition: KeyboardEvent.h:20
std::string key
Key pressed, encoded in UTF-8.
Definition: KeyboardEvent.h:17
std::string type
The type of the event. The string should be unique for this event.
Definition: Event.h:36
Event to handle KeyBoard actions.
Definition: KeyboardEvent.h:13