|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Represents per-frame key transition state. More...
#include <key_state.h>
Public Member Functions | |
| void | reset () |
Public Attributes | |
| bool | current = false |
| True if the key is down this frame. | |
| bool | previous = false |
| True if the key was down in the previous frame. | |
Represents per-frame key transition state.
Captures both current and previous key states to detect press and release edges. Enables deterministic input evaluation independent of event timing.
| void KeyState::reset | ( | ) |
| bool KeyState::current = false |
True if the key is down this frame.
| bool KeyState::previous = false |
True if the key was down in the previous frame.