diff options
author | Clyne Sullivan <tullivan99@gmail.com> | 2016-10-10 19:17:19 -0500 |
---|---|---|
committer | Clyne Sullivan <tullivan99@gmail.com> | 2016-10-10 19:17:19 -0500 |
commit | b19265bfa91e55c564b75aadcabd212ac89cf349 (patch) | |
tree | fab3a34fc96d52fc634ca0d507fdbaf5d3546b8e /include/ui.hpp | |
parent | 1f762f82f929cfd21222739a627a32e6199c34a9 (diff) |
the revival, entityx
Diffstat (limited to 'include/ui.hpp')
-rw-r--r-- | include/ui.hpp | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/include/ui.hpp b/include/ui.hpp index 56c484c..f276882 100644 --- a/include/ui.hpp +++ b/include/ui.hpp @@ -43,8 +43,18 @@ void setControl(unsigned int index, SDL_Keycode key); SDL_Keycode getControl(unsigned int index); +#include <entityx/entityx.h> + +class InputSystem : public entityx::System<InputSystem> { +public: + void update(entityx::EntityManager &en, entityx::EventManager &ev, entityx::TimeDelta dt) override; +}; + namespace ui { + extern bool fadeEnable; + extern int fadeIntensity; + // the pixel-coordinates of the mouse extern vec2 mouse; @@ -155,6 +165,7 @@ namespace ui { void toggleWhite(void); void toggleWhiteFast(void); void waitForCover(void); + void waitForUncover(void); } |