Raven Engine v0.1
A modern 3D Game Engine
Loading...
Searching...
No Matches
Raven::MouseMovedEvent Struct Reference

Event fired when the mouse cursor moves. More...

#include <MouseEvent.h>

Inherits Raven::Event.

Public Member Functions

constexpr MouseMovedEvent (float x, float y)
 Constructs a MouseMovedEvent.
Public Member Functions inherited from Raven::Event
constexpr bool IsInCategory (EventCategory cat) const noexcept
 Checks whether this event belongs to a given category.

Static Public Member Functions

static constexpr EventType StaticType ()
 Returns the static event type identifier.
static constexpr EventCategory StaticCategory ()

Public Attributes

float X
 New X position of the mouse cursor.
float Y
 New Y position of the mouse cursor.
Public Attributes inherited from Raven::Event
EventType Type = EventType::None
 Concrete event type.
EventCategory Category = EventCategory::None
 Event category bitmask.

Detailed Description

Event fired when the mouse cursor moves.

Constructor & Destructor Documentation

◆ MouseMovedEvent()

Raven::MouseMovedEvent::MouseMovedEvent ( float x,
float y )
inlineconstexpr

Constructs a MouseMovedEvent.

Parameters
xThe new X position.
yThe new Y position.

Member Function Documentation

◆ StaticCategory()

constexpr EventCategory Raven::MouseMovedEvent::StaticCategory ( )
inlinestaticconstexpr

◆ StaticType()

constexpr EventType Raven::MouseMovedEvent::StaticType ( )
inlinestaticconstexpr

Returns the static event type identifier.

Member Data Documentation

◆ X

float Raven::MouseMovedEvent::X

New X position of the mouse cursor.

◆ Y

float Raven::MouseMovedEvent::Y

New Y position of the mouse cursor.


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