#include <KeyEvent.hpp>
Definition at line 7 of file KeyEvent.hpp.
◆ KeyEvent()
| Cori::Core::KeyEvent::KeyEvent |
( |
const CoriKeycode | keycode | ) |
|
|
inlineexplicitprotected |
◆ GetCategoryFlags()
| uint32_t Cori::Core::KeyEvent::GetCategoryFlags |
( |
| ) |
const |
|
inlineoverridevirtual |
Gives the flags of particular Event.
- Note
- You shouldn't overload this, it is overloaded by EVENT_CLASS_CATEGORY macro!
- Returns
- Flag variable that stores all the relevant EventCategory flags.
Implements Cori::Core::Event.
Definition at line 10 of file KeyEvent.hpp.
◆ GetEventType()
| virtual constexpr std::type_index Cori::Core::Event::GetEventType |
( |
| ) |
const |
|
nodiscardconstexprpure virtualinherited |
◆ GetKeyCode()
◆ GetName()
| virtual const char * Cori::Core::Event::GetName |
( |
| ) |
const |
|
nodiscardpure virtualinherited |
◆ IsInCategory()
| bool Cori::Core::Event::IsInCategory |
( |
const EventCategory | category | ) |
const |
|
inlinenodiscardinherited |
Checks if the Event is in specific category.
- Parameters
-
| category | Bitmask that we need to check presence of. |
- Returns
- True is present, false otherwise.
Definition at line 59 of file Event.hpp.
◆ ToString()
| virtual std::string Cori::Core::Event::ToString |
( |
| ) |
const |
|
inlinenodiscardvirtualinherited |
◆ m_Handled
| bool Cori::Core::Event::m_Handled = false |
|
inherited |
◆ m_KeyCode
The documentation for this class was generated from the following file: