mirror of
https://github.com/luanti-org/luanti.git
synced 2025-10-14 00:55:20 +02:00
Make the settings GUI more usable on Android (#13543)
This commit is contained in:
@@ -153,6 +153,13 @@ ScriptApiBase::ScriptApiBase(ScriptingType type):
|
||||
lua_pushstring(m_luastack, porting::getPlatformName());
|
||||
lua_setglobal(m_luastack, "PLATFORM");
|
||||
|
||||
#ifdef HAVE_TOUCHSCREENGUI
|
||||
lua_pushboolean(m_luastack, true);
|
||||
#else
|
||||
lua_pushboolean(m_luastack, false);
|
||||
#endif
|
||||
lua_setglobal(m_luastack, "TOUCHSCREEN_GUI");
|
||||
|
||||
// Make sure Lua uses the right locale
|
||||
setlocale(LC_NUMERIC, "C");
|
||||
}
|
||||
|
Reference in New Issue
Block a user