Raven Engine v0.1
Loading...
Searching...
No Matches
Raven::MouseMovedEvent Class Reference

Event triggered when the mouse is moved. More...

#include <MouseEvent.h>

Inheritance diagram for Raven::MouseMovedEvent:
Raven::Event

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.

Detailed Description

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.

Constructor & Destructor Documentation

◆ MouseMovedEvent()

Raven::MouseMovedEvent::MouseMovedEvent ( const float x,
const float y )
inline

Constructs a MouseMovedEvent with the specified X and Y coordinates.

Parameters
xThe X coordinate of the mouse.
yThe Y coordinate of the mouse.

Member Function Documentation

◆ GetX()

float Raven::MouseMovedEvent::GetX ( ) const
inlinenodiscard

Gets the X coordinate of the mouse.

Returns
The X coordinate of the mouse.

◆ GetY()

float Raven::MouseMovedEvent::GetY ( ) const
inlinenodiscard

Gets the Y coordinate of the mouse.

Returns
The Y coordinate of the mouse.

◆ ToString()

std::string Raven::MouseMovedEvent::ToString ( ) const
inlinenodiscardoverridevirtual

Converts the MouseMovedEvent to a string representation.

Returns
A string describing the MouseMovedEvent with the X and Y coordinates. Event type for mouse movement Event category for mouse input

Reimplemented from Raven::Event.


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