mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 12:19:12 +00:00
DolphinQt: update FreeLook to use relative input
This commit is contained in:
parent
ddba5a3dfa
commit
f1ce921844
2 changed files with 5 additions and 2 deletions
|
@ -141,6 +141,10 @@ void HotkeyScheduler::Run()
|
||||||
{
|
{
|
||||||
Common::SleepCurrentThread(1000 / 60);
|
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.SetCurrentInputChannel(ciface::InputChannel::Host);
|
||||||
g_controller_interface.UpdateInput();
|
g_controller_interface.UpdateInput();
|
||||||
|
|
||||||
|
@ -546,8 +550,6 @@ void HotkeyScheduler::Run()
|
||||||
OSD::AddMessage(StringFromFormat("Free Look: %s", new_value ? "Enabled" : "Disabled"));
|
OSD::AddMessage(StringFromFormat("Free Look: %s", new_value ? "Enabled" : "Disabled"));
|
||||||
}
|
}
|
||||||
|
|
||||||
FreeLook::UpdateInput();
|
|
||||||
|
|
||||||
// Savestates
|
// Savestates
|
||||||
for (u32 i = 0; i < State::NUM_STATES; i++)
|
for (u32 i = 0; i < State::NUM_STATES; i++)
|
||||||
{
|
{
|
||||||
|
|
|
@ -8,6 +8,7 @@
|
||||||
|
|
||||||
#include <QObject>
|
#include <QObject>
|
||||||
|
|
||||||
|
#include "Common/CommonTypes.h"
|
||||||
#include "Common/Flag.h"
|
#include "Common/Flag.h"
|
||||||
#include "InputCommon/InputProfile.h"
|
#include "InputCommon/InputProfile.h"
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue