mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-29 04:08:55 +00:00
InputCommon: Make the "input gate" not racey.
This commit is contained in:
parent
93d7b3d159
commit
85ceb37ccd
17 changed files with 32 additions and 63 deletions
|
@ -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;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue