diff options
| author | Connor McLaughlin <stenzek@gmail.com> | 2019-11-11 10:59:49 +1000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-11-11 10:59:49 +1000 |
| commit | 913cb080667302760e42e3a6e2346b6e7c5cb1b6 (patch) | |
| tree | 66ff102774c387e743c535f5c79a55736e05c3b9 /Source/Core/InputCommon/ControlReference/ControlReference.h | |
| parent | 066012b80d7a149779b4e910dcda3be8ec97f8e3 (diff) | |
| parent | 85ceb37ccd24acc5ea026583ce3a0f6a4fb26eaa (diff) | |
Merge pull request #8456 from jordan-woyak/input-gate-race-fix
InputCommon: Make the "input gate" not racy.
Diffstat (limited to 'Source/Core/InputCommon/ControlReference/ControlReference.h')
| -rw-r--r-- | Source/Core/InputCommon/ControlReference/ControlReference.h | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/Source/Core/InputCommon/ControlReference/ControlReference.h b/Source/Core/InputCommon/ControlReference/ControlReference.h index 3f2c205501..539c7f4927 100644 --- a/Source/Core/InputCommon/ControlReference/ControlReference.h +++ b/Source/Core/InputCommon/ControlReference/ControlReference.h @@ -22,7 +22,9 @@ class ControlReference { public: - static bool InputGateOn(); + // Note: this is per thread. + static void SetInputGate(bool enable); + static bool GetInputGate(); virtual ~ControlReference(); virtual ControlState State(const ControlState state = 0) = 0; |
