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

Move touchscreen input handling to base GUIModalMenu class

This commit is contained in:
stujones11 2018-06-24 20:50:57 +01:00 committed by sfan5
parent 0d54399be2
commit 323c860045
14 changed files with 425 additions and 272 deletions

View file

@ -1288,7 +1288,12 @@ bool Game::createClient(const std::string &playername,
return false;
bool could_connect, connect_aborted;
#ifdef HAVE_TOUCHSCREENGUI
if (g_touchscreengui) {
g_touchscreengui->init(texture_src);
g_touchscreengui->hide();
}
#endif
if (!connectToServer(playername, password, address, port,
&could_connect, &connect_aborted))
return false;
@ -1414,7 +1419,7 @@ bool Game::initGui()
#ifdef HAVE_TOUCHSCREENGUI
if (g_touchscreengui)
g_touchscreengui->init(texture_src);
g_touchscreengui->show();
#endif