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
galaxy::MousePressed Struct Referencefinal

Contains data relating to a mouse pressed event. More...

#include <MousePressed.hpp>

+ Inheritance diagram for galaxy::MousePressed:
+ Collaboration diagram for galaxy::MousePressed:

Public Attributes

float m_xpos = 0.0f
 X coordinate, relative to window.
 
float m_ypos = 0.0f
 Y coordinate, relative to window.
 
int m_clicks = 0
 1 for single-click, 2 for double-click, etc.
 
MouseButton m_button = MouseButton::UNKNOWN
 The mouse button index.
 
- Public Attributes inherited from galaxy::HandleableEvent
bool m_handled = false
 Has this event been handled/consumed/processed already.
 

Detailed Description

Contains data relating to a mouse pressed event.

Definition at line 19 of file MousePressed.hpp.

Member Data Documentation

◆ m_xpos

float galaxy::MousePressed::m_xpos = 0.0f

X coordinate, relative to window.

Definition at line 24 of file MousePressed.hpp.

◆ m_ypos

float galaxy::MousePressed::m_ypos = 0.0f

Y coordinate, relative to window.

Definition at line 29 of file MousePressed.hpp.

◆ m_clicks

int galaxy::MousePressed::m_clicks = 0

1 for single-click, 2 for double-click, etc.

Definition at line 34 of file MousePressed.hpp.

◆ m_button

MouseButton galaxy::MousePressed::m_button = MouseButton::UNKNOWN

The mouse button index.

Definition at line 39 of file MousePressed.hpp.


The documentation for this struct was generated from the following file: