30class KeyPressedEvent :
public KeyEvent
33 KeyPressedEvent(KeyCode keycode,
bool isRepeat =
false)
35 , is_repeat_(isRepeat)
39 [[nodiscard]]
bool is_repeat()
const
44 [[nodiscard]] std::string to_string()
const override
47 ss <<
"KeyPressedEvent: " << key_code_ <<
" (repeat = " << is_repeat_ <<
")";
51 PB_EVENT_TYPE(KeyPressed)