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

Event fired when a mouse button is pressed. More...

#include <MouseEvent.h>

Inherits Raven::Event.

Public Member Functions

constexpr MouseButtonPressedEvent (MouseCode button)
 Constructs a MouseButtonPressedEvent.
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

MouseCode Button
 Mouse button that was pressed.
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 a mouse button is pressed.

Constructor & Destructor Documentation

◆ MouseButtonPressedEvent()

Raven::MouseButtonPressedEvent::MouseButtonPressedEvent ( MouseCode button)
inlineconstexpr

Constructs a MouseButtonPressedEvent.

Parameters
buttonThe button that was pressed.

Member Function Documentation

◆ StaticCategory()

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

◆ StaticType()

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

Returns the static event type identifier.

Member Data Documentation

◆ Button

MouseCode Raven::MouseButtonPressedEvent::Button

Mouse button that was pressed.


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