From dc4b93852617d51f35a5ec07fbd1cb74fef19f61 Mon Sep 17 00:00:00 2001 From: iwubcode Date: Mon, 25 May 2020 21:35:14 -0500 Subject: [PATCH] DolphinQt: use hotkeys for field of view to modify freelook camera --- Source/Core/DolphinQt/HotkeyScheduler.cpp | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index e24929f79a..168b2226fe 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -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();