#include <keyboard_event.h>
Public Member Functions | |
unsigned char | getKeyCode () const |
const std::string & | getKeySym () const |
bool | isAltPressed () const |
bool | isCtrlPressed () const |
bool | isShiftPressed () const |
KeyboardEvent (bool action, const std::string &key_sym, unsigned char key, bool alt, bool ctrl, bool shift) | |
Constructor. | |
bool | keyDown () const |
bool | keyUp () const |
Static Public Attributes | |
static const unsigned int | Alt = 1 |
bit patter for the ALT key | |
static const unsigned int | Ctrl = 2 |
bit patter for the Control key | |
static const unsigned int | Shift = 4 |
bit patter for the Shift key | |
Protected Attributes | |
bool | action_ |
unsigned char | key_code_ |
std::string | key_sym_ |
unsigned int | modifiers_ |
/brief Class representing key hit/release events
Definition at line 49 of file keyboard_event.h.
pcl::visualization::KeyboardEvent::KeyboardEvent | ( | bool | action, |
const std::string & | key_sym, | ||
unsigned char | key, | ||
bool | alt, | ||
bool | ctrl, | ||
bool | shift | ||
) | [inline] |
Constructor.
[in] | action | true for key was pressed, false for released |
[in] | key_sym | the key-name that caused the action |
[in] | key | the key code that caused the action |
[in] | alt | whether the alt key was pressed at the time where this event was triggered |
[in] | ctrl | whether the ctrl was pressed at the time where this event was triggered |
[in] | shift | whether the shift was pressed at the time where this event was triggered |
Definition at line 120 of file keyboard_event.h.
unsigned char pcl::visualization::KeyboardEvent::getKeyCode | ( | ) | const [inline] |
Definition at line 156 of file keyboard_event.h.
const std::string & pcl::visualization::KeyboardEvent::getKeySym | ( | ) | const [inline] |
Definition at line 162 of file keyboard_event.h.
bool pcl::visualization::KeyboardEvent::isAltPressed | ( | ) | const [inline] |
Definition at line 138 of file keyboard_event.h.
bool pcl::visualization::KeyboardEvent::isCtrlPressed | ( | ) | const [inline] |
Definition at line 144 of file keyboard_event.h.
bool pcl::visualization::KeyboardEvent::isShiftPressed | ( | ) | const [inline] |
Definition at line 150 of file keyboard_event.h.
bool pcl::visualization::KeyboardEvent::keyDown | ( | ) | const [inline] |
Definition at line 168 of file keyboard_event.h.
bool pcl::visualization::KeyboardEvent::keyUp | ( | ) | const [inline] |
Definition at line 174 of file keyboard_event.h.
bool pcl::visualization::KeyboardEvent::action_ [protected] |
Definition at line 114 of file keyboard_event.h.
const unsigned int pcl::visualization::KeyboardEvent::Alt = 1 [static] |
bit patter for the ALT key
Definition at line 53 of file keyboard_event.h.
const unsigned int pcl::visualization::KeyboardEvent::Ctrl = 2 [static] |
bit patter for the Control key
Definition at line 55 of file keyboard_event.h.
unsigned char pcl::visualization::KeyboardEvent::key_code_ [protected] |
Definition at line 116 of file keyboard_event.h.
std::string pcl::visualization::KeyboardEvent::key_sym_ [protected] |
Definition at line 117 of file keyboard_event.h.
unsigned int pcl::visualization::KeyboardEvent::modifiers_ [protected] |
Definition at line 115 of file keyboard_event.h.
const unsigned int pcl::visualization::KeyboardEvent::Shift = 4 [static] |
bit patter for the Shift key
Definition at line 57 of file keyboard_event.h.