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

Event fired when a keyboard key is released. More...

#include <KeyEvent.h>

Inherits Raven::Event.

Public Member Functions

constexpr KeyReleasedEvent (KeyCode key)
 Constructs a KeyReleasedEvent.
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

KeyCode Key
 Key that was released.
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 keyboard key is released.

Constructor & Destructor Documentation

◆ KeyReleasedEvent()

Raven::KeyReleasedEvent::KeyReleasedEvent ( KeyCode key)
inlineconstexpr

Constructs a KeyReleasedEvent.

Parameters
keyThe key code of the released key.

Member Function Documentation

◆ StaticCategory()

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

◆ StaticType()

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

Returns the static event type identifier.

Member Data Documentation

◆ Key

KeyCode Raven::KeyReleasedEvent::Key

Key that was released.


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