Event for registering mouse movement.
More...
#include <MouseEvent.h>
|
| | MouseMovedEvent (float x, float y) |
| | Construct a MouseMovedEvent with the specified x and y coordinates.
|
| float | GetX () const |
| | Get the x coordinate of the mouse.
|
| float | GetY () const |
| | Get the y coordinate of the mouse.
|
| std::string | ToString () const override |
| | Convert the event to a string representation.
|
| virtual | ~Event ()=default |
| virtual EventType | GetEventType () const =0 |
| | Get the type of the event.
|
| virtual const char * | GetName () const =0 |
| | Get the name of the event.
|
| virtual int | GetCategoryFlags () const =0 |
| | Get the category flags of the event.
|
| bool | IsInCategory (EventCategory category) |
| | Check if the event is in a specific category.
|
|
| bool | Handled = false |
| | Indicates whether the event has been handled.
|
Event for registering mouse movement.
◆ MouseMovedEvent()
| Vesper::MouseMovedEvent::MouseMovedEvent |
( |
float | x, |
|
|
float | y ) |
|
inline |
Construct a MouseMovedEvent with the specified x and y coordinates.
- Parameters
-
| x | The x coordinate of the mouse. |
| y | The y coordinate of the mouse. |
25 }
float m_MouseX
Definition MouseEvent.h:43
float m_MouseY
Definition MouseEvent.h:43
References m_MouseX, and m_MouseY.
◆ GetX()
| float Vesper::MouseMovedEvent::GetX |
( |
| ) |
const |
|
inline |
Get the x coordinate of the mouse.
References m_MouseX.
◆ GetY()
| float Vesper::MouseMovedEvent::GetY |
( |
| ) |
const |
|
inline |
Get the y coordinate of the mouse.
References m_MouseY.
◆ ToString()
| std::string Vesper::MouseMovedEvent::ToString |
( |
| ) |
const |
|
inlineoverridevirtual |
Convert the event to a string representation.
Reimplemented from Vesper::Event.
34 {
35 std::stringstream ss;
37 return ss.str();
38 }
References m_MouseX, and m_MouseY.
◆ m_MouseX
| float Vesper::MouseMovedEvent::m_MouseX |
|
private |
◆ m_MouseY
| float Vesper::MouseMovedEvent::m_MouseY |
|
private |
The documentation for this class was generated from the following file: