diff options
| author | Mat M <mathew1800@gmail.com> | 2017-02-08 20:01:18 -0500 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2017-02-08 20:01:18 -0500 |
| commit | 73382852b7636642d6614d7b7919ee6173dfe71f (patch) | |
| tree | 3b0a26314cb87c4b905c97988fa310b9b4fe569f /Source/Core/InputCommon/ControllerInterface/Device.h | |
| parent | 17e4b450fbc35cb3fb44c3a3a93203c59650072a (diff) | |
| parent | 2d51bf579f4c782951a3b9e7cd40327cdeb8b6b6 (diff) | |
Merge pull request #4502 from ligfx/extractcontrolreference
InputCommon: Extract ControlReference from ControllerInterface
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Device.h | 18 |
1 files changed, 0 insertions, 18 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.h b/Source/Core/InputCommon/ControllerInterface/Device.h index 657ece5016..bda6f1fb0a 100644 --- a/Source/Core/InputCommon/ControllerInterface/Device.h +++ b/Source/Core/InputCommon/ControllerInterface/Device.h @@ -42,8 +42,6 @@ public: public: virtual std::string GetName() const = 0; virtual ~Control() {} - bool InputGateOn(); - virtual Input* ToInput() { return nullptr; } virtual Output* ToOutput() { return nullptr; } }; @@ -59,15 +57,6 @@ public: // things like absolute axes/ absolute mouse position will override this virtual bool IsDetectable() { return true; } virtual ControlState GetState() const = 0; - - ControlState GetGatedState() - { - if (InputGateOn()) - return GetState(); - else - return 0.0; - } - Input* ToInput() override { return this; } }; @@ -81,13 +70,6 @@ public: public: virtual ~Output() {} virtual void SetState(ControlState state) = 0; - - void SetGatedState(ControlState state) - { - if (InputGateOn()) - SetState(state); - } - Output* ToOutput() override { return this; } }; |
