SleakEngine 1.0.0
C++23 multi-backend game engine
Loading...
Searching...
No Matches
Sleak::Events::Input::KeyEvent Class Reference

#include <KeyboardEvent.hpp>

Inheritance diagram for Sleak::Events::Input::KeyEvent:

Public Member Functions

virtual int GetCategoryFlags () const override
KeyCode GetKeyCode () const
std::string GetKeyStr () const
Public Member Functions inherited from Sleak::Event
 Event ()
virtual ~Event ()=default
virtual EventType GetEventType () const =0
virtual const char * GetName () const =0
bool IsInCategory (EventCategory category)
virtual std::string ToString () const

Protected Member Functions

 KeyEvent (const KeyCode keycode)

Protected Attributes

KeyCode m_KeyCode

Additional Inherited Members

Public Attributes inherited from Sleak::Event
bool Handled = false

Detailed Description

Common base for keyboard events; carries the key code involved.

Definition at line 16 of file KeyboardEvent.hpp.

Constructor & Destructor Documentation

◆ KeyEvent()

Sleak::Events::Input::KeyEvent::KeyEvent ( const KeyCode keycode)
inlineprotected

Definition at line 24 of file KeyboardEvent.hpp.

Member Function Documentation

◆ GetCategoryFlags()

virtual int Sleak::Events::Input::KeyEvent::GetCategoryFlags ( ) const
inlineoverridevirtual

Implements Sleak::Event.

Definition at line 22 of file KeyboardEvent.hpp.

◆ GetKeyCode()

KeyCode Sleak::Events::Input::KeyEvent::GetKeyCode ( ) const
inline

Definition at line 19 of file KeyboardEvent.hpp.

◆ GetKeyStr()

std::string Sleak::Events::Input::KeyEvent::GetKeyStr ( ) const
inline

Definition at line 20 of file KeyboardEvent.hpp.

Member Data Documentation

◆ m_KeyCode

KeyCode Sleak::Events::Input::KeyEvent::m_KeyCode
protected

Definition at line 27 of file KeyboardEvent.hpp.