3#include "PixelBullet/Application/Event.hpp"
4#include "PixelBullet/Input/KeyCodes.hpp"
8 using KeyCode = PixelBullet::Input::KeyCode;
16 KeyCode GetKeyCode()
const
21 EVENT_CLASS_CATEGORY(EventCategoryKeyboard | EventCategoryInput)
36 , m_IsRepeat(isRepeat)
45 std::string ToString()
const override
48 ss <<
"KeyPressedEvent: " << m_KeyCode <<
" (repeat = " << m_IsRepeat <<
")";
52 EVENT_CLASS_TYPE(KeyPressed)
65 std::string ToString()
const override
68 ss <<
"KeyReleasedEvent: " << m_KeyCode;
72 EVENT_CLASS_TYPE(KeyReleased)
83 std::string ToString()
const override
86 ss <<
"KeyTypedEvent: " << m_KeyCode;
90 EVENT_CLASS_TYPE(KeyTyped)
Definition KeyEvent.hpp:14
Definition KeyEvent.hpp:32
Definition KeyEvent.hpp:58
Definition KeyEvent.hpp:76