#include <KeyboardKey.hpp>
Provides a mapping from GLFW keyboard modifiers to a class.
◆ KeyboardModifiers()
ne::KeyboardModifiers::KeyboardModifiers |
( |
int |
iModifiers | ) |
|
|
inlineexplicit |
Constructor.
- Parameters
-
iModifiers | GLFW modifiers value. |
◆ isAltPressed()
bool ne::KeyboardModifiers::isAltPressed |
( |
| ) |
const |
|
inline |
Whether the Alt key is pressed or not.
- Returns
- 'true' if the Alt key is pressed, 'false' otherwise.
◆ isCapsLockPressed()
bool ne::KeyboardModifiers::isCapsLockPressed |
( |
| ) |
const |
|
inline |
Whether the Caps Lock key is pressed or not.
- Returns
- 'true' if the Caps Lock key is pressed, 'false' otherwise.
◆ isControlPressed()
bool ne::KeyboardModifiers::isControlPressed |
( |
| ) |
const |
|
inline |
Whether the Control (Ctrl) key is pressed or not.
- Returns
- 'true' if the Control (Ctrl) key is pressed, 'false' otherwise.
◆ isNumLockPressed()
bool ne::KeyboardModifiers::isNumLockPressed |
( |
| ) |
const |
|
inline |
Whether the Num Lock key is pressed or not.
- Returns
- 'true' if the Num Lock key is pressed, 'false' otherwise.
◆ isShiftPressed()
bool ne::KeyboardModifiers::isShiftPressed |
( |
| ) |
const |
|
inline |
Whether the Shift key is pressed or not.
- Returns
- 'true' if the Shift key is pressed, 'false' otherwise.
◆ isSuperPressed()
bool ne::KeyboardModifiers::isSuperPressed |
( |
| ) |
const |
|
inline |
Whether the Super key is pressed or not.
- Returns
- 'true' if the Super key is pressed, 'false' otherwise.
◆ iModifiers
int ne::KeyboardModifiers::iModifiers |
|
private |
The documentation for this class was generated from the following file: