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
MouseMoved.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_EVENTS_MOUSEMOVED_HPP_
9#define GALAXY_EVENTS_MOUSEMOVED_HPP_
10
12
13namespace galaxy
14{
18 struct MouseMoved final : public Event
19 {
28 MouseMoved(const float xpos, const float ypos, const float xrel, const float yrel) noexcept;
29
33 float m_xpos = 0.0f;
34
38 float m_ypos = 0.0f;
39
43 float m_xrel = 0.0f;
44
48 float m_yrel = 0.0f;
49 };
50} // namespace galaxy
51
52#endif
Base type of all events.
Definition Event.hpp:17
Application.hpp galaxy.
Contains data relating to a mouse moved event.
float m_yrel
The relative motion in the Y direction.
float m_ypos
Y coordinate, relative to window.
float m_xpos
X coordinate, relative to window.
float m_xrel
The relative motion in the X direction.
MouseMoved(const float xpos, const float ypos, const float xrel, const float yrel) noexcept
Constructor.