ControllerInterface: Add platform consistent names for modifier keys.

This commit is contained in:
Jordan Woyak
2019-10-25 19:33:59 -05:00
parent d2729df281
commit f015c99a51
5 changed files with 65 additions and 0 deletions

View File

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