Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
MouseWheelState Struct Reference

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
 

Detailed Description

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.

Member Function Documentation

◆ reset()

void MouseWheelState::reset ( )

Member Data Documentation

◆ last_scroll_direction

MouseDirection MouseWheelState::last_scroll_direction = MouseDirection::none

◆ x_delta

float MouseWheelState::x_delta = 0.0f

Horizontal scroll change this frame.

◆ x_scroll

float MouseWheelState::x_scroll = 0.0f

Accumulated horizontal scroll position.

◆ y_delta

float MouseWheelState::y_delta = 0.0f

Vertical scroll change this frame.

◆ y_scroll

float MouseWheelState::y_scroll = 0.0f

Accumulated vertical scroll position.


The documentation for this struct was generated from the following file: