1
0
Fork 0
mirror of https://github.com/luanti-org/luanti.git synced 2025-06-27 16:36:03 +00:00

Add zoom, tweakable with zoom_fov, default key: Z (like optifine)

This commit is contained in:
Esteban I. Ruiz Moreno 2013-03-31 00:30:32 -03:00 committed by est31
parent c013c73f33
commit 2c31b79235
7 changed files with 20 additions and 2 deletions

View file

@ -1371,6 +1371,7 @@ void KeyCache::populate()
= getKeySetting("keymap_decrease_viewing_range_min");
key[KeyType::RANGESELECT]
= getKeySetting("keymap_rangeselect");
key[KeyType::ZOOM] = getKeySetting("keymap_zoom");
key[KeyType::QUICKTUNE_NEXT] = getKeySetting("keymap_quicktune_next");
key[KeyType::QUICKTUNE_PREV] = getKeySetting("keymap_quicktune_prev");
@ -3270,6 +3271,7 @@ void Game::updatePlayerControl(const CameraOrientation &cam)
isKeyDown(KeyType::JUMP),
isKeyDown(KeyType::SPECIAL1),
isKeyDown(KeyType::SNEAK),
isKeyDown(KeyType::ZOOM),
isLeftPressed(),
isRightPressed(),
cam.camera_pitch,