Vesper 0.5.1
Vesper is short form for the Latin word for "Bat", as Vesper is designed to be small, lightweight, and easily handle things like particles and flocking behaviors in accordance with the nature of bats. \n It is meant to be a particle simulation, VFX editor, and CAN be used secondarily as a small game engine.
GitHub | Vesper Updates | Creator
Loading...
Searching...
No Matches
Vesper::KeyReleasedEvent Class Reference

Event for registering key release. More...

#include <KeyEvent.h>

Inheritance diagram for Vesper::KeyReleasedEvent:
Vesper::KeyEvent Vesper::Event

Public Member Functions

 KeyReleasedEvent (int keycode)
 Construct a KeyReleasedEvent with the specified key code.
std::string ToString () const override
 Convert the event to a string representation.
Public Member Functions inherited from Vesper::KeyEvent
int GetKeyCode () const
 Get the key code associated with the event.
Public Member Functions inherited from Vesper::Event
virtual ~Event ()=default
virtual EventType GetEventType () const =0
 Get the type of the event.
virtual const char * GetName () const =0
 Get the name of the event.
virtual int GetCategoryFlags () const =0
 Get the category flags of the event.
bool IsInCategory (EventCategory category)
 Check if the event is in a specific category.

Additional Inherited Members

Public Attributes inherited from Vesper::Event
bool Handled = false
 Indicates whether the event has been handled.
Protected Member Functions inherited from Vesper::KeyEvent
 KeyEvent (int keycode)
 Construct a KeyEvent with the specified key code.
Protected Attributes inherited from Vesper::KeyEvent
int m_KeyCode

Detailed Description

Event for registering key release.

Constructor & Destructor Documentation

◆ KeyReleasedEvent()

Vesper::KeyReleasedEvent::KeyReleasedEvent ( int keycode)
inline

Construct a KeyReleasedEvent with the specified key code.

Parameters
keycodeThe key code associated with the event.
72 : KeyEvent(keycode) {}
KeyEvent(int keycode)
Construct a KeyEvent with the specified key code.
Definition KeyEvent.h:29

References Vesper::KeyEvent::KeyEvent().

Member Function Documentation

◆ ToString()

std::string Vesper::KeyReleasedEvent::ToString ( ) const
inlineoverridevirtual

Convert the event to a string representation.

Reimplemented from Vesper::Event.

76 {
77 std::stringstream ss;
78 ss << "KeyReleasedEvent: " << m_KeyCode;
79 return ss.str();
80 }
int m_KeyCode
Definition KeyEvent.h:31

References Vesper::KeyEvent::m_KeyCode.


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