aboutsummaryrefslogtreecommitdiff
path: root/src/client/game.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/client/game.cpp')
-rw-r--r--src/client/game.cpp6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/client/game.cpp b/src/client/game.cpp
index fc911fc03..e7fc31774 100644
--- a/src/client/game.cpp
+++ b/src/client/game.cpp
@@ -2520,6 +2520,12 @@ void Game::checkZoomEnabled()
void Game::updateCameraDirection(CameraOrientation *cam, float dtime)
{
+#if IRRLICHT_VERSION_MT_REVISION >= 9
+ if (isMenuActive())
+ device->getCursorControl()->setRelativeMode(false);
+ else
+ device->getCursorControl()->setRelativeMode(true);
+#endif
if ((device->isWindowActive() && device->isWindowFocused()
&& !isMenuActive()) || input->isRandom()) {