ECSTASY
All in the name
Loading...
Searching...
No Matches
MouseButtonEvent.hpp
Go to the documentation of this file.
1
11
12#ifndef ECSTASY_INTEGRATION_EVENT_EVENTS_MOUSEBUTTONEVENT_HPP_
13#define ECSTASY_INTEGRATION_EVENT_EVENTS_MOUSEBUTTONEVENT_HPP_
14
16
18{
29 bool pressed;
30
40 constexpr MouseButtonEvent(Mouse::Button pButton = Mouse::Button::Count, bool pPressed = true) noexcept
41 : button(pButton), pressed(pPressed)
42 {
43 }
44 };
45
46} // namespace ecstasy::integration::event
47
48#endif /* !ECSTASY_INTEGRATION_EVENT_EVENTS_MOUSEBUTTONEVENT_HPP_ */
@ Count
Keep last – the total number of mouse buttons.
Event integration.
Definition Event.hpp:25
Event describing when a mouse button is pressed or released.
constexpr MouseButtonEvent(Mouse::Button pButton=Mouse::Button::Count, bool pPressed=true) noexcept
Construct a new MouseButtonEvent object.
bool pressed
Whether it was pressed or released.