DolphinQt: use hotkeys for field of view to modify freelook camera

This commit is contained in:
iwubcode 2020-05-25 21:35:14 -05:00
parent 7aa153d57e
commit dc4b938526

View file

@ -563,6 +563,18 @@ void HotkeyScheduler::Run()
if (IsHotkey(HK_FREELOOK_ZOOM_OUT, true))
g_freelook_camera.Zoom(-fl_speed);
if (IsHotkey(HK_FREELOOK_INCREASE_FOV_X, true))
g_freelook_camera.IncreaseFovX(0.1f);
if (IsHotkey(HK_FREELOOK_DECREASE_FOV_X, true))
g_freelook_camera.IncreaseFovX(-0.1f);
if (IsHotkey(HK_FREELOOK_INCREASE_FOV_Y, true))
g_freelook_camera.IncreaseFovY(0.1f);
if (IsHotkey(HK_FREELOOK_DECREASE_FOV_Y, true))
g_freelook_camera.IncreaseFovY(-0.1f);
if (IsHotkey(HK_FREELOOK_RESET, true))
g_freelook_camera.Reset();