diff options
| author | Jordan Woyak <jordan.woyak@gmail.com> | 2019-10-25 19:33:59 -0500 |
|---|---|---|
| committer | Jordan Woyak <jordan.woyak@gmail.com> | 2020-09-25 20:29:18 -0500 |
| commit | f015c99a5193400a9798616c0a265e5c66916c55 (patch) | |
| tree | 208cbf282429b08bcec09fca9562af87acc931fb /Source/Core/InputCommon/ControllerInterface/Device.h | |
| parent | d2729df281485651cbc3c27e4c9419f43fe61408 (diff) | |
ControllerInterface: Add platform consistent names for modifier keys.
Diffstat (limited to 'Source/Core/InputCommon/ControllerInterface/Device.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerInterface/Device.h | 17 |
1 files changed, 17 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerInterface/Device.h b/Source/Core/InputCommon/ControllerInterface/Device.h index 43e61e53fd..495c64cbde 100644 --- a/Source/Core/InputCommon/ControllerInterface/Device.h +++ b/Source/Core/InputCommon/ControllerInterface/Device.h @@ -147,6 +147,23 @@ protected: AddInput(new FullAnalogSurface(high, low)); } + class CombinedInput final : public Input + { + public: + using Inputs = std::pair<Input*, Input*>; + + CombinedInput(std::string name, const Inputs& inputs); + ControlState GetState() const override; + std::string GetName() const override; + bool IsDetectable() override; + + private: + const std::string m_name; + const std::pair<Input*, Input*> m_inputs; + }; + + void AddCombinedInput(std::string name, const std::pair<std::string, std::string>& inputs); + private: int m_id; std::vector<Input*> m_inputs; |
