[Orxonox-commit 3319] r8008 - code/branches/usability/src/libraries/core
rgrieder at orxonox.net
rgrieder at orxonox.net
Thu Mar 3 02:30:41 CET 2011
Author: rgrieder
Date: 2011-03-03 02:30:41 +0100 (Thu, 03 Mar 2011)
New Revision: 8008
Modified:
code/branches/usability/src/libraries/core/GraphicsManager.cc
Log:
InputManager should reload devices when the render device changes fullscreen/resolution.
Modified: code/branches/usability/src/libraries/core/GraphicsManager.cc
===================================================================
--- code/branches/usability/src/libraries/core/GraphicsManager.cc 2011-03-01 04:22:14 UTC (rev 8007)
+++ code/branches/usability/src/libraries/core/GraphicsManager.cc 2011-03-03 01:30:41 UTC (rev 8008)
@@ -65,6 +65,7 @@
#include "WindowEventListener.h"
#include "XMLFile.h"
#include "command/ConsoleCommand.h"
+#include "input/InputManager.h"
namespace orxonox
{
@@ -499,6 +500,8 @@
GraphicsManager::getInstance().getRenderWindow()->setFullscreen(fullscreen, width, height);
this->ogreRoot_->saveConfig();
Core::getInstance().updateOgreConfigTimestamp();
+ // Also reload the input devices
+ InputManager::getInstance().reload();
}
return validate;
More information about the Orxonox-commit
mailing list