mirror of
https://gitlab.com/OpenMW/openmw.git
synced 2025-01-06 00:55:50 +00:00
Change stats viewer key to f3
This commit is contained in:
parent
5f7a82e0da
commit
9ee63dc3f4
@ -541,7 +541,7 @@ void OMW::Engine::go()
|
||||
mViewer = new osgViewer::Viewer;
|
||||
|
||||
osg::ref_ptr<osgViewer::StatsHandler> 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);
|
||||
|
@ -84,8 +84,8 @@ InputWrapper::InputWrapper(SDL_Window* window, osg::ref_ptr<osgViewer::Viewer> 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<osgViewer::Viewer> 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:
|
||||
|
Loading…
Reference in New Issue
Block a user