summaryrefslogtreecommitdiff
path: root/src/game.h
diff options
context:
space:
mode:
authorAndrei Karas <akaras@inbox.ru>2013-08-24 13:22:54 +0300
committerAndrei Karas <akaras@inbox.ru>2013-08-24 21:08:17 +0300
commitc63a2a04e47c361a7254b0749298de84a6f331fa (patch)
tree3d7ccae75c1d8bfd6adb6937c269c17139e3e9e1 /src/game.h
parent9b727d191c9cea2324a8505296b08d0719a49207 (diff)
downloadplus-c63a2a04e47c361a7254b0749298de84a6f331fa.tar.gz
plus-c63a2a04e47c361a7254b0749298de84a6f331fa.tar.bz2
plus-c63a2a04e47c361a7254b0749298de84a6f331fa.tar.xz
plus-c63a2a04e47c361a7254b0749298de84a6f331fa.zip
add minimize/maximize event handling in game class for SDL2.
Diffstat (limited to 'src/game.h')
-rw-r--r--src/game.h6
1 files changed, 6 insertions, 0 deletions
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.
*/