#include <KeyboardController.h>
◆ KeyboardController()
| KeyboardController::KeyboardController |
( |
| ) |
|
◆ isKeyDownThisFrame()
| bool KeyboardController::isKeyDownThisFrame |
( |
PlatformKey |
key | ) |
const |
- Parameters
-
- Returns
- Whether the key is held down this frame. Key is considered held down for the frame if it was pressed (and potentially released) this frame, or if it was pressed in one of the previous frames and is still not released.
◆ isKeyPressedThisFrame()
| bool KeyboardController::isKeyPressedThisFrame |
( |
PlatformKey |
key | ) |
const |
- Parameters
-
- Returns
- Whether the key was pressed at least once this frame.
◆ keyPressEvent()
◆ keyReleaseEvent()
◆ processMessages()
Processes the messages that are currently in the message queue, and returns. Returns immediately if there are no messages in the message queue.
- Parameters
-
| eventHandler | Callback for event processing. |
Reimplemented from ProxyEventLoop.
◆ reset()
| void KeyboardController::reset |
( |
| ) |
|
◆ _isKeyDown
| IndexedArray<bool, PlatformKey::KEY_FIRST, PlatformKey::KEY_LAST> KeyboardController::_isKeyDown = {{}} |
|
private |
Whether the key is currently held down.
◆ _isKeyPressedThisFrame
| IndexedArray<bool, PlatformKey::KEY_FIRST, PlatformKey::KEY_LAST> KeyboardController::_isKeyPressedThisFrame = {{}} |
|
private |
Whether the key was pressed this frame.
The documentation for this class was generated from the following files: