ECSTASY
All in the name
Loading...
Searching...
No Matches
ecstasy::integration::event::MouseButtonEvent Struct Reference

Event describing when a mouse button is pressed or released. More...

#include <MouseButtonEvent.hpp>

Inheritance diagram for ecstasy::integration::event::MouseButtonEvent:

Public Member Functions

constexpr MouseButtonEvent (Mouse::Button pButton=Mouse::Button::Count, bool pPressed=true) noexcept
 Construct a new MouseButtonEvent object.
 

Public Attributes

Mouse::Button button
 target button.
 
bool pressed
 Whether it was pressed or released.
 

Detailed Description

Event describing when a mouse button is pressed or released.

Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2022-11-06)

Definition at line 25 of file MouseButtonEvent.hpp.

Constructor & Destructor Documentation

◆ MouseButtonEvent()

constexpr ecstasy::integration::event::MouseButtonEvent::MouseButtonEvent ( Mouse::Button  pButton = Mouse::Button::Count,
bool  pPressed = true 
)
inlineconstexprnoexcept

Construct a new MouseButtonEvent object.

Parameters
[in]pButtonTargeted button.
[in]pPressedWhether the button is pressed or not.
Author
Andréas Leroux (andre.nosp@m.as.l.nosp@m.eroux.nosp@m.@epi.nosp@m.tech..nosp@m.eu)
Since
1.0.0 (2022-11-06)

Definition at line 40 of file MouseButtonEvent.hpp.

41 : button(pButton), pressed(pPressed)
42 {
43 }
bool pressed
Whether it was pressed or released.

Member Data Documentation

◆ button

Mouse::Button ecstasy::integration::event::MouseButtonEvent::button

target button.

Definition at line 27 of file MouseButtonEvent.hpp.

◆ pressed

bool ecstasy::integration::event::MouseButtonEvent::pressed

Whether it was pressed or released.

Definition at line 29 of file MouseButtonEvent.hpp.


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