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
MousePressed.hpp
Go to the documentation of this file.
1
7
8#ifndef GALAXY_EVENTS_MOUSEPRESSED_HPP_
9#define GALAXY_EVENTS_MOUSEPRESSED_HPP_
10
13
14namespace galaxy
15{
19 struct MousePressed final : public HandleableEvent
20 {
24 float m_xpos = 0.0f;
25
29 float m_ypos = 0.0f;
30
34 int m_clicks = 0;
35
40 };
41} // namespace galaxy
42
43#endif
Animated.cpp galaxy.
Definition Animated.cpp:16
MouseButton
Enum class representing mouse buttons.
This allows an event to be marked as being "handled" so events lower in the stack can no longer consu...
Contains data relating to a mouse pressed event.
MouseButton m_button
The mouse button index.
float m_ypos
Y coordinate, relative to window.
int m_clicks
1 for single-click, 2 for double-click, etc.
float m_xpos
X coordinate, relative to window.