1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Fix crash on Android with IrrlichtMt9 (#13123)

Caused by mouse control
This commit is contained in:
ROllerozxa 2023-01-08 14:04:17 +01:00 committed by GitHub
parent fb28ca463e
commit 390b5caaaa
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 7 additions and 3 deletions

View file

@ -2535,12 +2535,13 @@ void Game::checkZoomEnabled()
void Game::updateCameraDirection(CameraOrientation *cam, float dtime)
{
#if IRRLICHT_VERSION_MT_REVISION >= 9
#if !defined(__ANDROID__) && 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()) {