feat: event sketch
This commit is contained in:
18
src/event.cpp
Normal file
18
src/event.cpp
Normal file
@@ -0,0 +1,18 @@
|
||||
#include "event.h"
|
||||
|
||||
size_t Event::s_id_counter = 0;
|
||||
|
||||
Event::Event() : m_id(s_id_counter++) {}
|
||||
|
||||
void Event::Handle() {
|
||||
m_handled = true;
|
||||
}
|
||||
|
||||
bool Event::IsHandled() const {
|
||||
return m_handled;
|
||||
}
|
||||
|
||||
size_t Event::Id() const {
|
||||
return m_id;
|
||||
}
|
||||
|
||||
6
src/event/input.cpp
Normal file
6
src/event/input.cpp
Normal file
@@ -0,0 +1,6 @@
|
||||
#include "event/input.h"
|
||||
|
||||
EventType InputEvent::GetType() const {
|
||||
return EventType::INPUT;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user