F10 toggles show FPS
authorRyan Flegel <rflegel@gmail.com>
Thu, 12 Jun 2008 21:24:57 +0000 (21:24 +0000)
committerRyan Flegel <rflegel@gmail.com>
Thu, 12 Jun 2008 21:24:57 +0000 (21:24 +0000)
SVN-Revision: 5567

src/mainloop.cpp

index 978d6bf..6a9bb04 100644 (file)
@@ -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;