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

Aggregates all mouse-related state information. More...

#include <mouse_state.h>

Public Member Functions

void reset ()
 

Public Attributes

Point position = Point(0, 0)
 
float delta_x = 0.0f
 
float delta_y = 0.0f
 
std::map< MouseButton, MouseButtonStatebuttons
 
MouseWheelState wheel
 

Detailed Description

Aggregates all mouse-related state information.

Encapsulates position, button states, and wheel movement into a single structure. Intended for per-frame input tracking and polling through IInputProvider.

Member Function Documentation

◆ reset()

void MouseState::reset ( )

Member Data Documentation

◆ buttons

std::map<MouseButton, MouseButtonState> MouseState::buttons

◆ delta_x

float MouseState::delta_x = 0.0f

◆ delta_y

float MouseState::delta_y = 0.0f

◆ position

Point MouseState::position = Point(0, 0)

◆ wheel

MouseWheelState MouseState::wheel

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