InputCommon: Make the "input gate" not racey.

This commit is contained in:
Jordan Woyak 2019-11-06 15:59:36 -06:00
parent 93d7b3d159
commit 85ceb37ccd
17 changed files with 32 additions and 63 deletions

View file

@ -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;