8#ifndef GALAXY_EVENTS_MOUSEWHEEL_HPP_
9#define GALAXY_EVENTS_MOUSEWHEEL_HPP_
32 MouseWheel(
const float ax,
const float ay,
const SDL_MouseWheelDirection dir,
const float mx,
const float my,
const int tx,
const int ty)
noexcept;
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.
MouseWheel(const float ax, const float ay, const SDL_MouseWheelDirection dir, const float mx, const float my, const int tx, const int ty) noexcept
Constructor.
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.