mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
InputCommon: Make the "input gate" not racey.
This commit is contained in:
@ -25,6 +25,7 @@
|
||||
|
||||
#include "DolphinQt/Settings.h"
|
||||
|
||||
#include "InputCommon/ControlReference/ControlReference.h"
|
||||
#include "InputCommon/ControllerInterface/ControllerInterface.h"
|
||||
|
||||
#include "VideoCommon/OnScreenDisplay.h"
|
||||
@ -142,8 +143,14 @@ void HotkeyScheduler::Run()
|
||||
|
||||
if (Core::GetState() != Core::State::Stopping)
|
||||
{
|
||||
// Obey window focus before checking hotkeys.
|
||||
Core::UpdateInputGate();
|
||||
|
||||
HotkeyManagerEmu::GetStatus();
|
||||
|
||||
// Everything else on the host thread (controller config dialog) should always get input.
|
||||
ControlReference::SetInputGate(true);
|
||||
|
||||
if (!Core::IsRunningAndStarted())
|
||||
continue;
|
||||
|
||||
|
Reference in New Issue
Block a user