summaryrefslogtreecommitdiff
path: root/ui/inputHandler.h
diff options
context:
space:
mode:
Diffstat (limited to 'ui/inputHandler.h')
-rw-r--r--ui/inputHandler.h18
1 files changed, 18 insertions, 0 deletions
diff --git a/ui/inputHandler.h b/ui/inputHandler.h
new file mode 100644
index 0000000..aac323b
--- /dev/null
+++ b/ui/inputHandler.h
@@ -0,0 +1,18 @@
+#ifndef INPUT_HANDLER_H
+#define INPUT_HANDLER_H
+
+#include <special_members.hpp>
+
+union SDL_Event;
+
+class InputHandler {
+public:
+ InputHandler() = default;
+ virtual ~InputHandler() = default;
+
+ DEFAULT_MOVE_COPY(InputHandler);
+
+ virtual bool handleInput(const SDL_Event &) = 0;
+};
+
+#endif