From: Ryan Flegel Date: Thu, 12 Jun 2008 21:24:57 +0000 (+0000) Subject: F10 toggles show FPS X-Git-Url: https://git.verplant.org/?a=commitdiff_plain;h=1ad740cbd83243e28cc43741ea2d46215c46bdbf;p=supertux.git F10 toggles show FPS SVN-Revision: 5567 --- diff --git a/src/mainloop.cpp b/src/mainloop.cpp index 978d6bfed..6a9bb042d 100644 --- a/src/mainloop.cpp +++ b/src/mainloop.cpp @@ -201,6 +201,10 @@ MainLoop::process_events() break; case SDL_KEYDOWN: + if (event.key.keysym.sym == SDLK_F10) + { + config->show_fps = !config->show_fps; + } if (event.key.keysym.sym == SDLK_F11) { config->use_fullscreen = !config->use_fullscreen;