2 #ifndef ENIGMA_KEY_EVENT_H
3 #define ENIGMA_KEY_EVENT_H
32 m_repeat_count(repeat_count) {}
37 std::ostringstream ss;
38 ss <<
"KeyPressedEvent: " <<
m_key_code <<
" (" << m_repeat_count <<
" repeats)";
45 std::uint16_t m_repeat_count;
55 std::ostringstream ss;
70 std::ostringstream ss;
#define EVENT_CLASS_TYPE(type)
#define EVENT_CLASS_CATEGORY(category)
#define NS_ENIGMA_BEGIN
Enable/Disable Assertions.
KeyCode GetKeyCode() const noexcept
KeyEvent(const KeyCode keyCode)
std::uint16_t GetRepeatCount() const noexcept
KeyPressedEvent(const KeyCode keycode, const std::uint16_t repeat_count)
std::string ToString() const override
KeyReleasedEvent(const KeyCode keyCode)
std::string ToString() const override
KeyTypedEvent(const KeyCode keyCode)
std::string ToString() const override