3#include "pixelbullet/application/event.h"
4#include "pixelbullet/input/key_codes.h"
10using KeyCode = pixelbullet::input::KeyCode;
18 KeyCode GetKeyCode()
const
23 EVENT_CLASS_CATEGORY(EventCategoryKeyboard | EventCategoryInput)
38 , is_repeat_(isRepeat)
47 std::string ToString()
const override
50 ss <<
"KeyPressedEvent: " << key_code_ <<
" (repeat = " << is_repeat_ <<
")";
54 EVENT_CLASS_TYPE(KeyPressed)
67 std::string ToString()
const override
70 ss <<
"KeyReleasedEvent: " << key_code_;
74 EVENT_CLASS_TYPE(KeyReleased)
85 std::string ToString()
const override
88 ss <<
"KeyTypedEvent: " << key_code_;
92 EVENT_CLASS_TYPE(KeyTyped)
Definition key_event.h:16
Definition key_event.h:34
Definition key_event.h:60
Definition key_event.h:78