Add touch_controls boolean to get_player_window_information() (#14092)
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user