KarmaEngine
Game Engine for practical learning and research purposes
Loading...
Searching...
No Matches
Karma::KeyReleasedEvent Class Reference

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

#include <KeyEvent.h>

Inheritance diagram for Karma::KeyReleasedEvent:
Karma::KeyEvent Karma::Event

Public Member Functions

 KeyReleasedEvent (int keycode)
 A constructor.
std::string ToString () const override
 String representation of th event.
Public Member Functions inherited from Karma::KeyEvent
int GetKeyCode () const
 Getter for key code of the keyboard event.
Public Member Functions inherited from Karma::Event
virtual EventType GetEventType () const =0
 Getter for event name (type).
virtual const char * GetName () const =0
 Getter for event type.
virtual int GetCategoryFlags () const =0
 Getter for category flags (enum EventCategory).
bool IsInCategory (EventCategory category)
 Routine to see if the category of the Event is (or a part of) given category.
bool IsHandled () const
 Getter for the m_Handled.
EventGetObjPointer ()
 Getter for the pointer to the object.

Additional Inherited Members

Protected Member Functions inherited from Karma::KeyEvent
 KeyEvent (int keycode)
 A constructor.
Protected Attributes inherited from Karma::KeyEvent
int m_KeyCode
Protected Attributes inherited from Karma::Event
bool m_Handled = false

Detailed Description

Event triggered when the key is released.

Constructor & Destructor Documentation

◆ KeyReleasedEvent()

Karma::KeyReleasedEvent::KeyReleasedEvent ( int keycode)
inline

A constructor.

Parameters
keycodeGLFW defined key code
See also
https://www.glfw.org/docs/3.3/group__keys.html
Since
Karma 1.0.0

Member Function Documentation

◆ ToString()

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

String representation of th event.

Since
Karma 1.0.0

Reimplemented from Karma::Event.


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