From f1ce9218447469ca1701a35631a5a147c7dd24da Mon Sep 17 00:00:00 2001 From: iwubcode Date: Fri, 25 Dec 2020 19:11:21 -0600 Subject: [PATCH] DolphinQt: update FreeLook to use relative input --- Source/Core/DolphinQt/HotkeyScheduler.cpp | 6 ++++-- Source/Core/DolphinQt/HotkeyScheduler.h | 1 + 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/Source/Core/DolphinQt/HotkeyScheduler.cpp b/Source/Core/DolphinQt/HotkeyScheduler.cpp index ac37b5de96..1f310383fa 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.cpp +++ b/Source/Core/DolphinQt/HotkeyScheduler.cpp @@ -141,6 +141,10 @@ void HotkeyScheduler::Run() { Common::SleepCurrentThread(1000 / 60); + g_controller_interface.SetCurrentInputChannel(ciface::InputChannel::FreeLook); + g_controller_interface.UpdateInput(); + FreeLook::UpdateInput(); + g_controller_interface.SetCurrentInputChannel(ciface::InputChannel::Host); g_controller_interface.UpdateInput(); @@ -546,8 +550,6 @@ void HotkeyScheduler::Run() OSD::AddMessage(StringFromFormat("Free Look: %s", new_value ? "Enabled" : "Disabled")); } - FreeLook::UpdateInput(); - // Savestates for (u32 i = 0; i < State::NUM_STATES; i++) { diff --git a/Source/Core/DolphinQt/HotkeyScheduler.h b/Source/Core/DolphinQt/HotkeyScheduler.h index f104abb44d..4717eb4492 100644 --- a/Source/Core/DolphinQt/HotkeyScheduler.h +++ b/Source/Core/DolphinQt/HotkeyScheduler.h @@ -8,6 +8,7 @@ #include +#include "Common/CommonTypes.h" #include "Common/Flag.h" #include "InputCommon/InputProfile.h"