diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-11-06 15:59:36 -0600 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2019-11-06 16:31:02 -0600 |
| commit | 85ceb37ccd24acc5ea026583ce3a0f6a4fb26eaa (patch) | |
| tree | 1a4d9a86fdcd36a3c1273502af576bcb30449db1 /Source/Core/InputCommon/ControlReference/ControlReference.h | |
| parent | 93d7b3d15962a3393cf2971e14c4acf54d90cecd (diff) | |
InputCommon: Make the "input gate" not racey.
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; |
