#include <KeyboardController.h>
◆ KeyboardController()
KeyboardController::KeyboardController |
( |
| ) |
|
◆ ConsumeKeyPress()
bool KeyboardController::ConsumeKeyPress |
( |
PlatformKey |
key | ) |
|
◆ IsKeyDown()
bool KeyboardController::IsKeyDown |
( |
PlatformKey |
key | ) |
const |
◆ 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.
◆ isKeyDownReportPending_
IndexedArray<bool, PlatformKey::KEY_FIRST, PlatformKey::KEY_LAST> KeyboardController::isKeyDownReportPending_ = {{}} |
|
private |
Whether there was a key down event that hasn't yet been consumed with a call to ConsumeKeyPress
. Note that the key might already be released at this point, e.g. if press & release events were received one after another.
◆ isKeyDownThisFrame_
IndexedArray<bool, PlatformKey::KEY_FIRST, PlatformKey::KEY_LAST> KeyboardController::isKeyDownThisFrame_ = {{}} |
|
private |
The documentation for this class was generated from the following files: