Capycore Engine  0.1.0
A simple and lightweight game engine written in C++ based on the Unity API architecture.
Loading...
Searching...
No Matches
mouse_state.h File Reference
#include <engine/input/mouse_button.h>
#include <engine/public/util/point.h>
#include <map>
Include dependency graph for mouse_state.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  MouseButtonState
 Represents per-frame mouse button transition state. More...
 
struct  MouseWheelState
 Represents per-frame scroll state of the mouse wheel. More...
 
struct  MouseState
 Aggregates all mouse-related state information. More...
 

Enumerations

enum class  MouseDirection : std::uint8_t {
  none , up , down , left ,
  right
}
 Represents the primary directions of mouse wheel movement. More...
 

Enumeration Type Documentation

◆ MouseDirection

enum class MouseDirection : std::uint8_t
strong

Represents the primary directions of mouse wheel movement.

Used for querying the last scroll direction of the mouse. Can be combined with per-frame deltas for precise scroll handling.

Enumerator
none 

No scroll detected (this frame).

up 

Scroll wheel moved upward (away from the user).

down 

Scroll wheel moved downward (toward the user).

left 

Scroll wheel moved leftward.

right 

Scroll wheel moved rightward.