Fixed F12 (display FPS) handling so that it would only trigger on
pressing the button, not (again) on releasing it. git-svn-id: svn+ssh://svn.code.sf.net/p/supertuxkart/code/main/trunk@6030 178a84e3-b1eb-0310-8ba1-8eac791a3b58
This commit is contained in:
parent
81d87f02e2
commit
199356463d
@ -152,7 +152,8 @@ void InputManager::handleStaticAction(int key, int value)
|
||||
break;
|
||||
#endif
|
||||
case KEY_F12:
|
||||
UserConfigParams::m_display_fps = !UserConfigParams::m_display_fps;
|
||||
if(value)
|
||||
UserConfigParams::m_display_fps = !UserConfigParams::m_display_fps;
|
||||
break;
|
||||
#ifndef WIN32
|
||||
// For now disable F9 toggling fullscreen, since windows requires
|
||||
|
Loading…
x
Reference in New Issue
Block a user