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
MouseWheel.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_EVENTS_MOUSEWHEEL_HPP_
9#define GALAXY_EVENTS_MOUSEWHEEL_HPP_
10
13
14namespace galaxy
15{
19 struct MouseWheel final : public HandleableEvent
20 {
24 float m_amount_x = 0.0f;
25
29 float m_amount_y = 0.0f;
30
35 SDL_MouseWheelDirection m_direction = SDL_MOUSEWHEEL_NORMAL;
36
40 float m_mouse_x = 0.0f;
41
45 float m_mouse_y = 0.0f;
46
50 int m_total_x = 0;
51
55 int m_total_y = 0;
56 };
57} // namespace galaxy
58
59#endif
Animated.cpp galaxy.
Definition Animated.cpp:16
This allows an event to be marked as being "handled" so events lower in the stack can no longer consu...
Contains mouse wheel movement data.
float m_amount_y
The amount scrolled vertically, positive away from the user and negative toward the user.
int m_total_y
The amount scrolled vertically, accumulated to whole scroll "ticks".
int m_total_x
The amount scrolled horizontally, accumulated to whole scroll "ticks".
float m_mouse_y
Y coordinate, relative to window.
float m_mouse_x
X coordinate, relative to window.
float m_amount_x
The amount scrolled horizontally, positive to the right and negative to the left.
SDL_MouseWheelDirection m_direction
When FLIPPED the values in X and Y will be opposite. Multiply by -1 to change them back.