1 #ifndef KEY_DOWN_EVENT_H
2 #define KEY_DOWN_EVENT_H
32 static std::shared_ptr<KeyDownEvent>
create(
const int key) {
return std::make_shared<KeyDownEvent>(key); }
38 int getKey() const noexcept {
return key; }
Definition: event_type.h:19
Class for event.
Definition: event.h:10
EventType
Event type enum that is used when passing events.
Definition: event_type.h:12
Event(const EventType &type)
Event constructor.
Definition: event.h:21