mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-23 14:19:46 -06:00
DolphinQt: update FreeLook to use relative input
This commit is contained in:
@ -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"
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user