summaryrefslogtreecommitdiff
path: root/doc/lua_api.txt
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 /doc/lua_api.txt
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 'doc/lua_api.txt')
-rw-r--r--doc/lua_api.txt7
1 files changed, 4 insertions, 3 deletions
diff --git a/doc/lua_api.txt b/doc/lua_api.txt
index cb968958f..07e9698e8 100644
--- a/doc/lua_api.txt
+++ b/doc/lua_api.txt
@@ -6106,13 +6106,14 @@ object you are working with still exists.
* `get_formspec_prepend(formspec)`: returns a formspec string.
* `get_player_control()`: returns table with player pressed keys
* The table consists of fields with boolean value representing the pressed
- keys, the fields are jump, right, left, LMB, RMB, sneak, aux1, down, up.
+ keys, the fields are jump, right, left, LMB, RMB, sneak, aux1, down, up, zoom.
* example: `{jump=false, right=true, left=false, LMB=false, RMB=false,
- sneak=true, aux1=false, down=false, up=false}`
+ sneak=true, aux1=false, down=false, up=false, zoom=false}`
+ * The `zoom` field is available since 5.3
* `get_player_control_bits()`: returns integer with bit packed player pressed
keys.
* bit nr/meaning: 0/up, 1/down, 2/left, 3/right, 4/jump, 5/aux1, 6/sneak,
- 7/LMB, 8/RMB
+ 7/LMB, 8/RMB, 9/zoom (zoom available since 5.3)
* `set_physics_override(override_table)`
* `override_table` is a table with the following fields:
* `speed`: multiplier to default walking speed value (default: `1`)