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
|
@ -1873,6 +1873,12 @@ void Server::handleCommand_UpdateClientInfo(NetworkPacket *pkt)
|
|||
*pkt >> info.real_hud_scaling;
|
||||
*pkt >> info.max_fs_size.X;
|
||||
*pkt >> info.max_fs_size.Y;
|
||||
try {
|
||||
// added in 5.9.0
|
||||
*pkt >> info.touch_controls;
|
||||
} catch (PacketError &e) {
|
||||
info.touch_controls = false;
|
||||
}
|
||||
|
||||
session_t peer_id = pkt->getPeerId();
|
||||
RemoteClient *client = getClient(peer_id, CS_Invalid);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue