diff options
author | Andy <drumsetmonkey@gmail.com> | 2017-01-19 09:21:12 -0500 |
---|---|---|
committer | Andy <drumsetmonkey@gmail.com> | 2017-01-19 09:21:12 -0500 |
commit | 213d9ccfbb4752d4c62d6b7e6b3f9172cdf1bccc (patch) | |
tree | 7872c6f30c8adf048a7863a33d837299c7fb0771 /include/ui.hpp | |
parent | 19a32074595a4a2797eaeb978f8bd302f736f6a6 (diff) | |
parent | 8452b199d28bea53bf2c5e3b3d604064000fc73d (diff) |
Limb animation actually works
Diffstat (limited to 'include/ui.hpp')
-rw-r--r-- | include/ui.hpp | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/include/ui.hpp b/include/ui.hpp index 519d259..67c1010 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -44,8 +44,13 @@ SDL_Keycode getControl(int index); #include <entityx/entityx.h> -class InputSystem : public entityx::System<InputSystem> { +class InputSystem : public entityx::System<InputSystem>, public entityx::Receiver<InputSystem> { public: + inline void configure(entityx::EventManager &ev) { + ev.subscribe<MainSDLEvent>(*this); + } + + void receive(const MainSDLEvent& event); void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; }; |