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

Event describing when a mouse wheel is scrolled. More...

#include <MouseWheelScrollEvent.hpp>

Public Member Functions

constexpr MouseWheelScrollEvent (float pDelta=0, Mouse::Wheel pWheel=Mouse::Wheel::Horizontal) noexcept
 Construct a new MouseWheelScrollEvent object.
 

Public Attributes

float delta
 Wheel offset (positive is up/left and negative is down/right)
 
Mouse::Wheel wheel
 target wheel.
 

Detailed Description

Event describing when a mouse wheel is scrolled.

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 MouseWheelScrollEvent.hpp.

Constructor & Destructor Documentation

◆ MouseWheelScrollEvent()

constexpr ecstasy::integration::event::MouseWheelScrollEvent::MouseWheelScrollEvent ( float  pDelta = 0,
Mouse::Wheel  pWheel = Mouse::Wheel::Horizontal 
)
inlineconstexprnoexcept

Construct a new MouseWheelScrollEvent object.

Parameters
[in]pDeltaWheel offset.
[in]pWheelTargeted wheel.
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 MouseWheelScrollEvent.hpp.

41 : delta(pDelta), wheel(pWheel)
42 {
43 }
float delta
Wheel offset (positive is up/left and negative is down/right)

Member Data Documentation

◆ delta

float ecstasy::integration::event::MouseWheelScrollEvent::delta

Wheel offset (positive is up/left and negative is down/right)

Definition at line 27 of file MouseWheelScrollEvent.hpp.

◆ wheel

Mouse::Wheel ecstasy::integration::event::MouseWheelScrollEvent::wheel

target wheel.

Definition at line 29 of file MouseWheelScrollEvent.hpp.


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