26 Key(
char printable_character);
29 bool isControlKey()
const;
30 bool isPrintable()
const;
40 static const int KEY_SPACE;
41 static const int KEY_ESCAPE;
42 static const int KEY_BACKSPACE;
43 static const int KEY_ARROW_UP;
44 static const int KEY_ARROW_DOWN;
45 static const int KEY_ARROW_LEFT;
46 static const int KEY_ARROW_RIGHT;
47 static const int KEY_ENTER;
49 bool operator==(
Key const& k)
const;
65 #endif //-- __RD_KEY_HPP__
char char_value
Stores the char representation of a key.
Definition: Key.hpp:53
The main, catch-all namespace for Robot Devastation.
Definition: groups.dox:4
static const int KEY_UNKNOWN
Constant representing a non-supported / unknown key.
Definition: Key.hpp:37
bool control
Stores whether the key is a control key or not.
Definition: Key.hpp:60
bool printable
Stores whether the key is printable or not.
Definition: Key.hpp:58
int key_value
Stores the control key value of a key.
Definition: Key.hpp:55
Class that represents a keyboard key.
Definition: Key.hpp:23
static const int KEY_PRINTABLE
Constant representing any printable key.
Definition: Key.hpp:39