From 9ee63dc3f406cb14846b09c9c2b22c9c3e2083f2 Mon Sep 17 00:00:00 2001 From: scrawl Date: Thu, 28 May 2015 16:28:48 +0200 Subject: [PATCH] Change stats viewer key to f3 --- apps/openmw/engine.cpp | 2 +- components/sdlutil/sdlinputwrapper.cpp | 8 ++++---- 2 files changed, 5 insertions(+), 5 deletions(-) diff --git a/apps/openmw/engine.cpp b/apps/openmw/engine.cpp index 9bfd86709..fed1f134b 100644 --- a/apps/openmw/engine.cpp +++ b/apps/openmw/engine.cpp @@ -541,7 +541,7 @@ void OMW::Engine::go() mViewer = new osgViewer::Viewer; osg::ref_ptr statshandler = new osgViewer::StatsHandler; - statshandler->setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F9); + statshandler->setKeyEventTogglesOnScreenStats(osgGA::GUIEventAdapter::KEY_F3); statshandler->addUserStatsLine("Script", osg::Vec4f(1.f, 1.f, 1.f, 1.f), osg::Vec4f(1.f, 1.f, 1.f, 1.f), "script_time_taken", 1000.0, true, false, "script_time_begin", "script_time_end", 10000); diff --git a/components/sdlutil/sdlinputwrapper.cpp b/components/sdlutil/sdlinputwrapper.cpp index c321c342c..a9209bf58 100644 --- a/components/sdlutil/sdlinputwrapper.cpp +++ b/components/sdlutil/sdlinputwrapper.cpp @@ -84,8 +84,8 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr v mKeyboardListener->keyPressed(evt.key); // temporary for the stats viewer - if (evt.key.keysym.sym == SDLK_F9) - mViewer->getEventQueue()->keyPress(osgGA::GUIEventAdapter::KEY_F9); + if (evt.key.keysym.sym == SDLK_F3) + mViewer->getEventQueue()->keyPress(osgGA::GUIEventAdapter::KEY_F3); break; case SDL_KEYUP: @@ -93,8 +93,8 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr v mKeyboardListener->keyReleased(evt.key); // temporary for the stats viewer - if (evt.key.keysym.sym == SDLK_F9) - mViewer->getEventQueue()->keyRelease(osgGA::GUIEventAdapter::KEY_F9); + if (evt.key.keysym.sym == SDLK_F3) + mViewer->getEventQueue()->keyRelease(osgGA::GUIEventAdapter::KEY_F3); break; case SDL_TEXTINPUT: