1
0
mirror of https://github.com/luanti-org/luanti.git synced 2025-10-18 02:45:21 +02:00

Exposing the zoom key to Lua API (#9903)

Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
This commit is contained in:
Lars Müller
2020-06-13 22:46:20 +02:00
committed by GitHub
parent 2424dfe007
commit e7e065f553
4 changed files with 10 additions and 5 deletions

View File

@@ -501,6 +501,7 @@ void Server::process_PlayerPos(RemotePlayer *player, PlayerSAO *playersao,
player->control.sneak = (keyPressed & 64);
player->control.LMB = (keyPressed & 128);
player->control.RMB = (keyPressed & 256);
player->control.zoom = (keyPressed & 512);
if (playersao->checkMovementCheat()) {
// Call callbacks