Enigma  3.2.0
A Simple, Reliable and Efficient Encryption Tool
KeyEvent Class Reference

#include <KeyEvent.hpp>

Inheritance diagram for KeyEvent:
Event KeyPressedEvent KeyReleasedEvent KeyTypedEvent

Public Member Functions

KeyCode GetKeyCode () const noexcept
 
- Public Member Functions inherited from Event
virtual EventType GetEventType () const =0
 
virtual const char * GetName () const =0
 
virtual std::uint32_t GetCategoryFlags () const =0
 
virtual std::string ToString () const
 
bool IsInCategory (EventCategory category) const noexcept
 
bool IsHandled () const noexcept
 
void SetHandled (const bool handled) noexcept
 

Protected Member Functions

 KeyEvent (const KeyCode keyCode)
 

Protected Attributes

KeyCode m_key_code
 
- Protected Attributes inherited from Event
bool m_isHandled {false}
 

Detailed Description

Keyboard buttons Event

Definition at line 14 of file KeyEvent.hpp.

Constructor & Destructor Documentation

◆ KeyEvent()

KeyEvent::KeyEvent ( const KeyCode  keyCode)
inlineexplicitprotected

Definition at line 21 of file KeyEvent.hpp.

Member Function Documentation

◆ GetKeyCode()

KeyCode KeyEvent::GetKeyCode ( ) const
inlinenoexcept

Definition at line 16 of file KeyEvent.hpp.

Member Data Documentation

◆ m_key_code

KeyCode KeyEvent::m_key_code
protected

Definition at line 24 of file KeyEvent.hpp.


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