This class defines a key event, created by the KeyCallback.
More...
#include <event.hpp>
This class defines a key event, created by the KeyCallback.
Definition at line 92 of file event.hpp.
Creates a new key event.
- Parameters
-
key | The key of the event. |
scancode | The system-specific scancode for the key. |
action | The action of the event. |
mods | A bit field that describes which modifier keys were active. |
Definition at line 41 of file event.cpp.
sgl::KeyEvent::~KeyEvent |
( |
void |
| ) |
|
|
override |
Deletes a key event.
Definition at line 47 of file event.cpp.
Action sgl::KeyEvent::getAction |
( |
| ) |
|
Returns the action of the event.
- Returns
- The action of the event.
Definition at line 59 of file event.cpp.
Key sgl::KeyEvent::getKey |
( |
| ) |
|
Returns the key of the event.
- Returns
- The key of the event.
Definition at line 51 of file event.cpp.
Returns the modifier bits of the event.
- Returns
- The modifier bits of the event.
Definition at line 63 of file event.cpp.
int sgl::KeyEvent::getScancode |
( |
| ) |
|
Returns the system-specific scancode for the key.
- Returns
- The system-specific scancode for the key.
Definition at line 55 of file event.cpp.
The documentation for this class was generated from the following files:
- /home/heiko/Projekte/Studium/SimpleGL/Core/include/SimpleGL/event.hpp
- /home/heiko/Projekte/Studium/SimpleGL/Core/src/event.cpp