]> git.localhorst.tv Git - l2e.git/blobdiff - src/app/Application.h
added Input class for handling user input
[l2e.git] / src / app / Application.h
index 909942b829730020ecd598e368bcbaefc4d7edcb..f70dd69a29185383f395566397769e980c32aff1 100644 (file)
@@ -8,6 +8,7 @@
 #ifndef APP_APPLICATION_H_
 #define APP_APPLICATION_H_
 
+#include "Input.h"
 #include "../sdl/InitScreen.h"
 
 #include <stack>
@@ -36,6 +37,8 @@ public:
        void PushState(State *);
        void PopState(void);
        void Quit(void);
+       Input &Buttons() { return input; }
+       const Input &Buttons() const { return input; }
 
 private:
        State *CurrentState(void);
@@ -51,6 +54,7 @@ private:
 private:
        sdl::InitScreen *screen;
        std::stack<State *> states;
+       Input input;
        Uint32 last;
 
 };