- can disable mouse movement which scrolls the world camera. in glestuser.ini add:

MouseMoveScrollsWorld=false
This commit is contained in:
Mark Vejvoda
2011-08-31 00:24:14 +00:00
parent b2fc331876
commit a7e08e3b55

View File

@@ -1401,6 +1401,8 @@ void Game::mouseMove(int x, int y, const MouseState *ms) {
//if(Window::isKeyDown() == false)
if(!camLeftButtonDown && !camRightButtonDown && !camUpButtonDown && !camDownButtonDown)
{
bool mouseMoveScrollsWorld = Config::getInstance().getBool("MouseMoveScrollsWorld","true");
if(mouseMoveScrollsWorld == true) {
if (y < 10) {
gameCamera.setMoveZ(-scrollSpeed);
}
@@ -1421,6 +1423,7 @@ void Game::mouseMove(int x, int y, const MouseState *ms) {
gameCamera.setMoveX(0);
}
}
}
if (mainMessageBox.getEnabled()) {
mainMessageBox.mouseMove(x, y);