ECSTASY
All in the name
Loading...
Searching...
No Matches
MouseWheelScrollEvent.hpp
Go to the documentation of this file.
1
11
12#ifndef ECSTASY_INTEGRATION_EVENT_EVENTS_MOUSEWHEELSCROLLEVENT_HPP_
13#define ECSTASY_INTEGRATION_EVENT_EVENTS_MOUSEWHEELSCROLLEVENT_HPP_
14
16
18{
27 float delta;
30
40 constexpr MouseWheelScrollEvent(float pDelta = 0, Mouse::Wheel pWheel = Mouse::Wheel::Horizontal) noexcept
41 : delta(pDelta), wheel(pWheel)
42 {
43 }
44 };
45
46} // namespace ecstasy::integration::event
47
48#endif /* !ECSTASY_INTEGRATION_EVENT_EVENTS_MOUSEWHEELSCROLLEVENT_HPP_ */
@ Horizontal
Horizontal mouse wheel (common)
Event integration.
Definition Event.hpp:25
Event describing when a mouse wheel is scrolled.
constexpr MouseWheelScrollEvent(float pDelta=0, Mouse::Wheel pWheel=Mouse::Wheel::Horizontal) noexcept
Construct a new MouseWheelScrollEvent object.
float delta
Wheel offset (positive is up/left and negative is down/right)