![]() |
Raven Engine v0.1
|
Event triggered when the mouse wheel is scrolled. More...
#include <MouseEvent.h>
Public Member Functions | |
| MouseScrolledEvent (const float xOffset, const float yOffset) | |
| Constructs a MouseScrolledEvent with the specified scroll offsets. | |
| float | GetXOffset () const |
| Gets the horizontal scroll offset. | |
| float | GetYOffset () const |
| Gets the vertical scroll offset. | |
| std::string | ToString () const override |
| Converts the MouseScrolledEvent to a string representation. | |
| Public Member Functions inherited from Raven::Event | |
| virtual | ~Event ()=default |
| virtual EventType | GetEventType () const =0 |
| Returns the runtime event type. | |
| virtual const char * | GetName () const =0 |
| Returns the name of the event. | |
| virtual EventCategory | GetCategoryFlags () const =0 |
| Returns the category flags of the event. | |
| bool | IsInCategory (EventCategory category) const |
| Checks if the event belongs to the specified category. | |
Additional Inherited Members | |
| Public Attributes inherited from Raven::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Event triggered when the mouse wheel is scrolled.
This event is triggered when the user scrolls the mouse wheel. It contains the X and Y offset values which indicate how far the wheel was scrolled.
|
inline |
Constructs a MouseScrolledEvent with the specified scroll offsets.
| xOffset | The horizontal offset of the scroll. |
| yOffset | The vertical offset of the scroll. |
|
inlinenodiscard |
Gets the horizontal scroll offset.
|
inlinenodiscard |
Gets the vertical scroll offset.
|
inlinenodiscardoverridevirtual |
Converts the MouseScrolledEvent to a string representation.
Reimplemented from Raven::Event.