X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.h;fp=src%2Fapp%2FApplication.h;h=f70dd69a29185383f395566397769e980c32aff1;hb=867fd5d9b79c3b9c1d0fb17ba9f55cfe971b93d5;hp=909942b829730020ecd598e368bcbaefc4d7edcb;hpb=2955f56fb11fab871a34db5700befe55737d81d7;p=l2e.git diff --git a/src/app/Application.h b/src/app/Application.h index 909942b..f70dd69 100644 --- a/src/app/Application.h +++ b/src/app/Application.h @@ -8,6 +8,7 @@ #ifndef APP_APPLICATION_H_ #define APP_APPLICATION_H_ +#include "Input.h" #include "../sdl/InitScreen.h" #include @@ -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 states; + Input input; Uint32 last; };