mirror of
https://github.com/luanti-org/luanti.git
synced 2025-06-27 16:36:03 +00:00
Add touch_controls
boolean to get_player_window_information()
(#14092)
This commit is contained in:
parent
7162b536eb
commit
91ba02449b
8 changed files with 40 additions and 3 deletions
|
@ -946,6 +946,10 @@ int ModApiMainMenu::l_get_window_info(lua_State *L)
|
|||
lua_pushnumber(L, info.real_hud_scaling);
|
||||
lua_settable(L, top);
|
||||
|
||||
lua_pushstring(L, "touch_controls");
|
||||
lua_pushboolean(L, info.touch_controls);
|
||||
lua_settable(L, top);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
|
@ -317,6 +317,11 @@ int ModApiServer::l_get_player_window_information(lua_State *L)
|
|||
lua_pushstring(L, "real_hud_scaling");
|
||||
lua_pushnumber(L, dynamic->real_hud_scaling);
|
||||
lua_settable(L, dyn_table);
|
||||
|
||||
lua_pushstring(L, "touch_controls");
|
||||
lua_pushboolean(L, dynamic->touch_controls);
|
||||
lua_settable(L, dyn_table);
|
||||
|
||||
return 1;
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue