galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
Loading...
Searching...
No Matches
galaxy::MouseWheel Struct Referencefinal

Contains mouse wheel movement data. More...

#include <MouseWheel.hpp>

+ Inheritance diagram for galaxy::MouseWheel:
+ Collaboration diagram for galaxy::MouseWheel:

Public Attributes

float m_amount_x = 0.0f
 The amount scrolled horizontally, positive to the right and negative to the left.
 
float m_amount_y = 0.0f
 The amount scrolled vertically, positive away from the user and negative toward the user.
 
SDL_MouseWheelDirection m_direction = SDL_MOUSEWHEEL_NORMAL
 When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back.
 
float m_mouse_x = 0.0f
 X coordinate, relative to window.
 
float m_mouse_y = 0.0f
 Y coordinate, relative to window.
 
int m_total_x = 0
 The amount scrolled horizontally, accumulated to whole scroll "ticks".
 
int m_total_y = 0
 The amount scrolled vertically, accumulated to whole scroll "ticks".
 
- Public Attributes inherited from galaxy::HandleableEvent
bool m_handled = false
 Has this event been handled/consumed/processed already.
 

Detailed Description

Contains mouse wheel movement data.

Definition at line 19 of file MouseWheel.hpp.

Member Data Documentation

◆ m_amount_x

float galaxy::MouseWheel::m_amount_x = 0.0f

The amount scrolled horizontally, positive to the right and negative to the left.

Definition at line 24 of file MouseWheel.hpp.

◆ m_amount_y

float galaxy::MouseWheel::m_amount_y = 0.0f

The amount scrolled vertically, positive away from the user and negative toward the user.

Definition at line 29 of file MouseWheel.hpp.

◆ m_direction

SDL_MouseWheelDirection galaxy::MouseWheel::m_direction = SDL_MOUSEWHEEL_NORMAL

When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back.

Definition at line 35 of file MouseWheel.hpp.

◆ m_mouse_x

float galaxy::MouseWheel::m_mouse_x = 0.0f

X coordinate, relative to window.

Definition at line 40 of file MouseWheel.hpp.

◆ m_mouse_y

float galaxy::MouseWheel::m_mouse_y = 0.0f

Y coordinate, relative to window.

Definition at line 45 of file MouseWheel.hpp.

◆ m_total_x

int galaxy::MouseWheel::m_total_x = 0

The amount scrolled horizontally, accumulated to whole scroll "ticks".

Definition at line 50 of file MouseWheel.hpp.

◆ m_total_y

int galaxy::MouseWheel::m_total_y = 0

The amount scrolled vertically, accumulated to whole scroll "ticks".

Definition at line 55 of file MouseWheel.hpp.


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