|
Capycore Engine
0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
|
Represents per-frame scroll state of the mouse wheel. More...
#include <mouse_state.h>
Public Member Functions | |
| void | reset () |
Public Attributes | |
| float | x_scroll = 0.0f |
| Accumulated horizontal scroll position. | |
| float | y_scroll = 0.0f |
| Accumulated vertical scroll position. | |
| float | x_delta = 0.0f |
| Horizontal scroll change this frame. | |
| float | y_delta = 0.0f |
| Vertical scroll change this frame. | |
| MouseDirection | last_scroll_direction = MouseDirection::none |
Represents per-frame scroll state of the mouse wheel.
Captures accumulated position, per-frame delta, and last known direction. Designed for deterministic querying without backend-specific dependencies.
| void MouseWheelState::reset | ( | ) |
| MouseDirection MouseWheelState::last_scroll_direction = MouseDirection::none |
| float MouseWheelState::x_delta = 0.0f |
Horizontal scroll change this frame.
| float MouseWheelState::x_scroll = 0.0f |
Accumulated horizontal scroll position.
| float MouseWheelState::y_delta = 0.0f |
Vertical scroll change this frame.
| float MouseWheelState::y_scroll = 0.0f |
Accumulated vertical scroll position.