mirror of
https://github.com/glest/glest-source.git
synced 2025-08-30 11:19:48 +02:00
- can disable mouse movement which scrolls the world camera. in glestuser.ini add:
MouseMoveScrollsWorld=false
This commit is contained in:
@@ -1401,6 +1401,8 @@ void Game::mouseMove(int x, int y, const MouseState *ms) {
|
|||||||
//if(Window::isKeyDown() == false)
|
//if(Window::isKeyDown() == false)
|
||||||
if(!camLeftButtonDown && !camRightButtonDown && !camUpButtonDown && !camDownButtonDown)
|
if(!camLeftButtonDown && !camRightButtonDown && !camUpButtonDown && !camDownButtonDown)
|
||||||
{
|
{
|
||||||
|
bool mouseMoveScrollsWorld = Config::getInstance().getBool("MouseMoveScrollsWorld","true");
|
||||||
|
if(mouseMoveScrollsWorld == true) {
|
||||||
if (y < 10) {
|
if (y < 10) {
|
||||||
gameCamera.setMoveZ(-scrollSpeed);
|
gameCamera.setMoveZ(-scrollSpeed);
|
||||||
}
|
}
|
||||||
@@ -1421,6 +1423,7 @@ void Game::mouseMove(int x, int y, const MouseState *ms) {
|
|||||||
gameCamera.setMoveX(0);
|
gameCamera.setMoveX(0);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
if (mainMessageBox.getEnabled()) {
|
if (mainMessageBox.getEnabled()) {
|
||||||
mainMessageBox.mouseMove(x, y);
|
mainMessageBox.mouseMove(x, y);
|
||||||
|
Reference in New Issue
Block a user