summaryrefslogtreecommitdiff
path: root/src/player.h
diff options
context:
space:
mode:
authorEsteban I. Ruiz Moreno <exio4.com@gmail.com>2013-03-31 00:30:32 -0300
committerest31 <MTest31@outlook.com>2016-08-10 12:18:25 +0200
commit2c31b79235dd83de753fce5890c5797e149048b8 (patch)
tree86dac00e356f00d89a48bde28b3b052214e8168c /src/player.h
parentc013c73f338b1c2227662458ebc650883f83271c (diff)
downloadminetest-2c31b79235dd83de753fce5890c5797e149048b8.tar.gz
minetest-2c31b79235dd83de753fce5890c5797e149048b8.tar.bz2
minetest-2c31b79235dd83de753fce5890c5797e149048b8.zip
Add zoom, tweakable with zoom_fov, default key: Z (like optifine)
Diffstat (limited to 'src/player.h')
-rw-r--r--src/player.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/player.h b/src/player.h
index e6fcf388a..eab00bb04 100644
--- a/src/player.h
+++ b/src/player.h
@@ -49,6 +49,7 @@ struct PlayerControl
sidew_move_joystick_axis = .0f;
forw_move_joystick_axis = .0f;
}
+
PlayerControl(
bool a_up,
bool a_down,
@@ -57,6 +58,7 @@ struct PlayerControl
bool a_jump,
bool a_aux1,
bool a_sneak,
+ bool a_zoom,
bool a_LMB,
bool a_RMB,
float a_pitch,
@@ -72,6 +74,7 @@ struct PlayerControl
jump = a_jump;
aux1 = a_aux1;
sneak = a_sneak;
+ zoom = a_zoom;
LMB = a_LMB;
RMB = a_RMB;
pitch = a_pitch;
@@ -86,6 +89,7 @@ struct PlayerControl
bool jump;
bool aux1;
bool sneak;
+ bool zoom;
bool LMB;
bool RMB;
float pitch;