From c63a2a04e47c361a7254b0749298de84a6f331fa Mon Sep 17 00:00:00 2001 From: Andrei Karas Date: Sat, 24 Aug 2013 13:22:54 +0300 Subject: add minimize/maximize event handling in game class for SDL2. --- src/game.h | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'src/game.h') diff --git a/src/game.h b/src/game.h index 6eb26f2dc..fcef8b161 100644 --- a/src/game.h +++ b/src/game.h @@ -84,10 +84,16 @@ class Game final void handleMove(); +#ifdef USE_SDL2 + void handleSDL2WindowEvent(const SDL_Event &event); +#else void handleActive(const SDL_Event &event); +#endif void changeMap(const std::string &mapName); + void updateFrameRate(int fpsLimit); + /** * Returns the currently active map. */ -- cgit v1.2.3-70-g09d2