![]() |
Raven Engine v0.1
|
Event triggered when the mouse is moved. More...
#include <MouseEvent.h>
Public Member Functions | |
| MouseMovedEvent (const float x, const float y) | |
| Constructs a MouseMovedEvent with the specified X and Y coordinates. | |
| float | GetX () const |
| Gets the X coordinate of the mouse. | |
| float | GetY () const |
| Gets the Y coordinate of the mouse. | |
| std::string | ToString () const override |
| Converts the MouseMovedEvent 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 is moved.
This event is triggered whenever the mouse moves to a new position. It contains the X and Y coordinates of the mouse at the time of the event.
|
inline |
Constructs a MouseMovedEvent with the specified X and Y coordinates.
| x | The X coordinate of the mouse. |
| y | The Y coordinate of the mouse. |
|
inlinenodiscard |
Gets the X coordinate of the mouse.
|
inlinenodiscard |
Gets the Y coordinate of the mouse.
|
inlinenodiscardoverridevirtual |
Converts the MouseMovedEvent to a string representation.
Reimplemented from Raven::Event.