![]() |
galaxy 1.0.0
Real-Time C++23 Game Programming Framework. Built on data-driven design principles and agile software engineering.
|
Contains mouse wheel movement data. More...
#include <MouseWheel.hpp>
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". | |
![]() | |
bool | m_handled = false |
Has this event been handled/consumed/processed already. | |
Contains mouse wheel movement data.
Definition at line 19 of file MouseWheel.hpp.
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.
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.
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.
float galaxy::MouseWheel::m_mouse_x = 0.0f |
X coordinate, relative to window.
Definition at line 40 of file MouseWheel.hpp.
float galaxy::MouseWheel::m_mouse_y = 0.0f |
Y coordinate, relative to window.
Definition at line 45 of file MouseWheel.hpp.
int galaxy::MouseWheel::m_total_x = 0 |
The amount scrolled horizontally, accumulated to whole scroll "ticks".
Definition at line 50 of file MouseWheel.hpp.
int galaxy::MouseWheel::m_total_y = 0 |
The amount scrolled vertically, accumulated to whole scroll "ticks".
Definition at line 55 of file MouseWheel.hpp.