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

Event fired when the mouse wheel is scrolled. More...

#include <MouseEvent.h>

Inherits Raven::Event.

Public Member Functions

constexpr MouseScrolledEvent (float xOffset, float yOffset)
 Constructs a MouseScrolledEvent.
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 XOffset
 Horizontal scroll offset.
float YOffset
 Vertical scroll offset.
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 wheel is scrolled.

Constructor & Destructor Documentation

◆ MouseScrolledEvent()

Raven::MouseScrolledEvent::MouseScrolledEvent ( float xOffset,
float yOffset )
inlineconstexpr

Constructs a MouseScrolledEvent.

Parameters
xOffsetThe horizontal scroll offset.
yOffsetThe vertical scroll offset.

Member Function Documentation

◆ StaticCategory()

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

◆ StaticType()

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

Returns the static event type identifier.

Member Data Documentation

◆ XOffset

float Raven::MouseScrolledEvent::XOffset

Horizontal scroll offset.

◆ YOffset

float Raven::MouseScrolledEvent::YOffset

Vertical scroll offset.


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