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

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.
 

Detailed Description

Represents per-frame mouse button transition state.

Tracks both current and previous button states to detect presses and releases deterministically.

Member Function Documentation

◆ reset()

void MouseButtonState::reset ( )

Member Data Documentation

◆ current

bool MouseButtonState::current = false

True if the button is down this frame.

◆ previous

bool MouseButtonState::previous
Initial value:
=
false

True if the button was down in the previous frame.


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