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

Event triggered when a key is released. More...

#include <KeyEvent.h>

Inheritance diagram for Raven::KeyReleasedEvent:
Raven::KeyEvent Raven::Event

Public Member Functions

 KeyReleasedEvent (int keycode)
 Constructs a KeyReleasedEvent.
std::string ToString () const override
 Returns a string representation of the event.
Public Member Functions inherited from Raven::KeyEvent
int GetKeyCode () const
 Returns the key code associated with this event.
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.
Protected Member Functions inherited from Raven::KeyEvent
 KeyEvent (int keycode)
 Protected constructor for KeyEvent.
Protected Attributes inherited from Raven::KeyEvent
int m_KeyCode

Detailed Description

Event triggered when a key is released.

Constructor & Destructor Documentation

◆ KeyReleasedEvent()

Raven::KeyReleasedEvent::KeyReleasedEvent ( int keycode)
inlineexplicit

Constructs a KeyReleasedEvent.

Parameters
keycodeThe key code of the released key.

Member Function Documentation

◆ ToString()

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

Returns a string representation of the event.

Returns
A formatted string with the key code.

Reimplemented from Raven::Event.


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