|
SCV
4.2.1
Simple Components for Visual
|
Contains information about a keyboard event. More...
#include <KeyEvent.h>
Public Types | |
| enum | State { UP, DOWN } |
Public Member Functions | |
| KeyEvent (int key, int mod, bool special, KeyEvent::State state) | |
| std::string | getKeyString () const |
| Returns a (usually) human-readable name for the key. | |
| bool | operator== (const KeyEvent &rhs) |
Public Attributes | |
| const bool | special |
| If true, key is a special function key (arrow, Fn, etc.) | |
| const int | keycode |
The key pressed. If special is true then it is one of the GLUT_KEY_ constants in the GLUT header, else it is an ASCII code. | |
| const int | modifiers |
OR-ed mask of GLUT_ACTIVE_ constants indicating the modifier keys held when the key was pressed. | |
| const KeyEvent::State | state |
| Indicates if the key is being pressed or released. | |
Contains information about a keyboard event.
| enum scv::KeyEvent::State |
| scv::KeyEvent::KeyEvent | ( | int | key, |
| int | mod, | ||
| bool | special, | ||
| KeyEvent::State | state | ||
| ) |
| std::string scv::KeyEvent::getKeyString | ( | ) | const |
Returns a (usually) human-readable name for the key.
| bool scv::KeyEvent::operator== | ( | const KeyEvent & | rhs | ) |
| const int scv::KeyEvent::keycode |
The key pressed. If special is true then it is one of the GLUT_KEY_ constants in the GLUT header, else it is an ASCII code.
| const int scv::KeyEvent::modifiers |
OR-ed mask of GLUT_ACTIVE_ constants indicating the modifier keys held when the key was pressed.
| const bool scv::KeyEvent::special |
If true, key is a special function key (arrow, Fn, etc.)
| const KeyEvent::State scv::KeyEvent::state |
Indicates if the key is being pressed or released.