21 :
KeyEvent(keycode), m_Repeat(repeat) {
24 [[nodiscard]]
bool IsRepeated()
const {
return m_Repeat; }
26 [[nodiscard]] std::string
ToString()
const override {
31 bool m_Repeat{
false };
40 [[nodiscard]] std::string
ToString()
const override {
#define EVENT_CLASS_TYPE(type)
Assigns an EventType to the custom event type derived from the Event class. Use it in the public fiel...
#define EVENT_CLASS_CATEGORY(category)
Assigns an EventCategory to the custom event type derived from the Event class. Use it in the public ...
An abstract class that is ment to be used as a template for defining events.
KeyEvent(const CoriKeycode keycode)
CoriKeycode GetKeyCode() const
KeyPressedEvent(const CoriKeycode keycode, const bool repeat)
std::string ToString() const override
Returns the name of the Event.
std::string ToString() const override
Returns the name of the Event.
KeyReleasedEvent(const CoriKeycode keycode)
static std::string BoolAlpha(const bool b)
Core systems of the engine are here.
static std::string CoriGetKeyName(const CoriKeycode code)
CoriKeycode
This is a adaptation of SDL3 scancodes. Taken from 'SDL_scancode.h'.