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:
parent
0d54399be2
commit
323c860045
14 changed files with 425 additions and 272 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue