Struct Input::KeyState
Keyboard state snapshot. More...
#include <Input.h>
Public Attributes
| Type | Name |
|---|---|
| int | normal = { 0 }Active normal key (1-36 mapping a-z and extras) |
| SpecialKeys | special = { SpecialKeys::NONE }Active special modifiers. |
Public Functions
| Type | Name |
|---|---|
| bool | operator== (const KeyState & other) const Equality comparison for hotkey matching. |
Detailed Description
Captures special keys (Shift/Ctrl/Alt) and normal key simultaneously. Supports hotkey matching (e.g., "Ctrl+S").
Public Attributes Documentation
variable normal
Active normal key (1-36 mapping a-z and extras)
int Input::KeyState::normal;
variable special
Active special modifiers.
SpecialKeys Input::KeyState::special;
Public Functions Documentation
function operator==
Equality comparison for hotkey matching.
inline bool Input::KeyState::operator== (
const KeyState & other
) const
Parameters:
otherState to compare against
Returns:
true if states match
The documentation for this class was generated from the following file src/editor/Input.h