1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-13 16:45:20 +02: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
2 changed files with 7 additions and 3 deletions

View File

@@ -548,15 +548,18 @@ void ClientLauncher::main_menu(MainMenuData *menudata)
}
infostream << "Waited for other menus" << std::endl;
// Cursor can be non-visible when coming from the game
#ifndef ANDROID
// Cursor can be non-visible when coming from the game
m_rendering_engine->get_raw_device()->getCursorControl()->setVisible(true);
#endif
// Set absolute mouse mode
#if IRRLICHT_VERSION_MT_REVISION >= 9
m_rendering_engine->get_raw_device()->getCursorControl()->setRelativeMode(false);
#endif
#endif
/* show main menu */
GUIEngine mymenu(&input->joystick, guiroot, m_rendering_engine, &g_menumgr, menudata, *kill);