|
Muto 0.0.1
|
Event for registering mouse movement. More...
#include <MouseEvent.h>
Public Member Functions | |
| float | GetX () const |
| Get the x coordinate of the mouse. | |
| float | GetY () const |
| Get the y coordinate of the mouse. | |
| MouseMovedEvent (float x, float y) | |
| Construct a MouseMovedEvent with the specified x and y coordinates. | |
| std::string | ToString () const override |
| Convert the event to a string representation. | |
Public Member Functions inherited from Muto::Event | |
| virtual int | GetCategoryFlags () const =0 |
| Get the category flags of the event. | |
| virtual EventType | GetEventType () const =0 |
| Get the type of the event. | |
| virtual const char * | GetName () const =0 |
| Get the name of the event. | |
| bool | IsInCategory (EventCategory category) |
| Check if the event is in a specific category. | |
| virtual | ~Event ()=default |
Private Attributes | |
| float | m_MouseX |
| float | m_MouseY |
Additional Inherited Members | |
Public Attributes inherited from Muto::Event | |
| bool | Handled = false |
| Indicates whether the event has been handled. | |
Event for registering mouse movement.
Construct a MouseMovedEvent with the specified x and y coordinates.
| x | The x coordinate of the mouse. |
| y | The y coordinate of the mouse. |
|
inline |
|
inline |
|
inlineoverridevirtual |
|
private |
Referenced by GetX(), MouseMovedEvent(), and ToString().
|
private |
Referenced by GetY(), MouseMovedEvent(), and ToString().