45 namespace visualization
52 static const unsigned int Alt = 1;
54 static const unsigned int Ctrl = 2;
56 static const unsigned int Shift = 4;
66 inline KeyboardEvent (
bool action,
const std::string& key_sym,
unsigned char key,
67 bool alt,
bool ctrl,
bool shift);
96 inline const std::string&
120 bool alt,
bool ctrl,
bool shift)
/brief Class representing key hit/release events
bool isShiftPressed() const
KeyboardEvent(bool action, const std::string &key_sym, unsigned char key, bool alt, bool ctrl, bool shift)
Constructor.
const std::string & getKeySym() const
unsigned char getKeyCode() const
static const unsigned int Alt
bit pattern for the ALT key
static const unsigned int Shift
bit pattern for the Shift key
bool isCtrlPressed() const
bool isAltPressed() const
static const unsigned int Ctrl
bit pattern for the Control key