aboutsummaryrefslogtreecommitdiff
path: root/src/script/lua_api/l_object.cpp
diff options
context:
space:
mode:
authorLars Müller <34514239+appgurueu@users.noreply.github.com>2020-06-13 22:46:20 +0200
committerGitHub <noreply@github.com>2020-06-13 22:46:20 +0200
commite7e065f553b430173e9112ad55c7046cfc02f2c5 (patch)
treeea144e57f6753da91a4acd2efb1839e864dc5627 /src/script/lua_api/l_object.cpp
parent2424dfe007e451bb02f87884c2b272cf307d6e7c (diff)
downloadminetest-e7e065f553b430173e9112ad55c7046cfc02f2c5.tar.gz
minetest-e7e065f553b430173e9112ad55c7046cfc02f2c5.tar.bz2
minetest-e7e065f553b430173e9112ad55c7046cfc02f2c5.zip
Exposing the zoom key to Lua API (#9903)
Co-authored-by: Raul Ferriz <raul.ferriz@gmail.com>
Diffstat (limited to 'src/script/lua_api/l_object.cpp')
-rw-r--r--src/script/lua_api/l_object.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/script/lua_api/l_object.cpp b/src/script/lua_api/l_object.cpp
index 0a9f3117b..e7394133a 100644
--- a/src/script/lua_api/l_object.cpp
+++ b/src/script/lua_api/l_object.cpp
@@ -1459,6 +1459,8 @@ int ObjectRef::l_get_player_control(lua_State *L)
lua_setfield(L, -2, "LMB");
lua_pushboolean(L, control.RMB);
lua_setfield(L, -2, "RMB");
+ lua_pushboolean(L, control.zoom);
+ lua_setfield(L, -2, "zoom");
return 1;
}