#include <KeyboardEvent.hpp>
◆ KeyboardEvent() [1/2]
Constructor.
- Parameters
-
[in] | type | The keyboard event type. |
[in] | key | The key code. |
[in] | ctrl | Tells if the Ctrl key is down. |
[in] | alt | Tells if the Alt key is down. |
[in] | shift | Tells if the Shift key is down. |
◆ KeyboardEvent() [2/2]
Constructor.
- Parameters
-
[in] | type | The keyboard event type. |
[in] | key | The keycode. |
[in] | c | The character corresponding to the key code. |
[in] | ctrl | Tells if the Ctrl key is down. |
[in] | alt | Tells if the Alt key is down. |
[in] | shift | Tells if the Shift key is down. |
◆ getChar()
- Returns
- The character corresponding to the key code.
◆ getKey()
◆ getKeyboardEventType()
- Returns
- The keyboard event type.
◆ isAltDown()
bool castor3d::KeyboardEvent::isAltDown |
( |
| ) |
const |
|
inline |
- Returns
- The Alt key down status.
◆ isCtrlDown()
bool castor3d::KeyboardEvent::isCtrlDown |
( |
| ) |
const |
|
inline |
- Returns
- The Ctrl key down status.
◆ isShiftDown()
bool castor3d::KeyboardEvent::isShiftDown |
( |
| ) |
const |
|
inline |
- Returns
- The Shift key down status.
The documentation for this class was generated from the following file: