summaryrefslogtreecommitdiffstats
path: root/engine/include/serial
diff options
context:
space:
mode:
Diffstat (limited to 'engine/include/serial')
-rw-r--r--engine/include/serial/focusable.hpp7
-rw-r--r--engine/include/serial/keyfocusable.hpp8
-rw-r--r--engine/include/serial/mousefocusable.hpp0
3 files changed, 8 insertions, 7 deletions
diff --git a/engine/include/serial/focusable.hpp b/engine/include/serial/focusable.hpp
index 008f7a3..f139577 100644
--- a/engine/include/serial/focusable.hpp
+++ b/engine/include/serial/focusable.hpp
@@ -4,15 +4,14 @@
#include "core/object.hpp"
#include "types.hpp"
-class task_s;
union SDL_Event;
+namespace flat {
+
class Focusable : virtual public flat::core::object
{
bool focused;
- task_s * event_trigger;
-
protected:
/* Callback to event */
@@ -34,4 +33,6 @@ public:
void serial_precall(void*);
};
+}
+
#endif
diff --git a/engine/include/serial/keyfocusable.hpp b/engine/include/serial/keyfocusable.hpp
index e28e333..26f3ce2 100644
--- a/engine/include/serial/keyfocusable.hpp
+++ b/engine/include/serial/keyfocusable.hpp
@@ -5,6 +5,8 @@
struct SDL_KeyboardEvent;
+namespace flat {
+
class KeyFocusable : virtual public Focusable
{
@@ -15,10 +17,8 @@ class KeyFocusable : virtual public Focusable
protected:
virtual void key_cb(const SDL_KeyboardEvent*) = 0;
-
-public:
-
- using Focusable::Focusable;
};
+}
+
#endif
diff --git a/engine/include/serial/mousefocusable.hpp b/engine/include/serial/mousefocusable.hpp
deleted file mode 100644
index e69de29..0000000
--- a/engine/include/serial/mousefocusable.hpp
+++ /dev/null