|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Represents per-frame mouse button transition state. More...
#include <mouse_state.h>
Public Member Functions | |
| void | reset () |
Public Attributes | |
| bool | current = false |
| True if the button is down this frame. | |
| bool | previous |
| True if the button was down in the previous frame. | |
Represents per-frame mouse button transition state.
Tracks both current and previous button states to detect presses and releases deterministically.
| void MouseButtonState::reset | ( | ) |
| bool MouseButtonState::current = false |
True if the button is down this frame.
| bool MouseButtonState::previous |
True if the button was down in the previous frame.