X-Git-Url: http://git.localhorst.tv/?a=blobdiff_plain;f=src%2Fapp%2FApplication.h;h=f70dd69a29185383f395566397769e980c32aff1;hb=867fd5d9b79c3b9c1d0fb17ba9f55cfe971b93d5;hp=e43faf44e1692b0905d079d25b95084f5262edaf;hpb=59d528aaa84a2210b0a357887853f534cfbea156;p=l2e.git diff --git a/src/app/Application.h b/src/app/Application.h index e43faf4..f70dd69 100644 --- a/src/app/Application.h +++ b/src/app/Application.h @@ -8,10 +8,11 @@ #ifndef APP_APPLICATION_H_ #define APP_APPLICATION_H_ +#include "Input.h" #include "../sdl/InitScreen.h" #include -#include +#include namespace app { @@ -21,7 +22,7 @@ class State; class Application { public: - explicit Application(SDL_Surface *screen, State *initialState); + Application(sdl::InitScreen *screen, State *initialState); ~Application(void); private: Application(const Application &); @@ -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); @@ -49,8 +52,9 @@ private: void Render(void); private: - SDL_Surface *screen; + sdl::InitScreen *screen; std::stack states; + Input input; Uint32 last; };