![]() |
CUGL
Cornell University Game Library
|
#include <CUKeyboard.h>
Public Member Functions | |
| KeyEvent () | |
| KeyEvent (KeyCode code, const Timestamp &stamp) | |
| KeyCategory | keyCategory () |
Public Attributes | |
| Timestamp | timestamp |
| KeyCode | keycode |
This simple class is a struct to hold key event information
|
inline |
Constructs a new key event with the default values
Constructs a new key event with the given values
| code | The code for the key pressed/released |
| stamp | The timestamp for the event |
| KeyCategory cugl::KeyEvent::keyCategory | ( | ) |
Returns the category of this event
See KeyCategory for information on categories.
| KeyCode cugl::KeyEvent::keycode |
The code for the key
| Timestamp cugl::KeyEvent::timestamp |
The time that the key was pressed/released
1.8.10