diff options
| author | Tilka <tilkax@gmail.com> | 2020-02-10 02:05:24 +0000 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-02-10 02:05:24 +0000 |
| commit | ce1bc0b3ca5235571434c4b19ec785baab77fe8f (patch) | |
| tree | abf5a0198bf40f731a8f11411112548e141ff5b1 /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h | |
| parent | 01d69ba81a0a6ece04befa6cf5f14f14c65792e7 (diff) | |
| parent | 47877ecf2c3b173d77bc55242a22ae9adbabf2be (diff) | |
Merge pull request #8617 from jordan-woyak/control-creation-cleanup
InputCommon: Clean up creation of inputs.
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h index 26b3ce5ad6..3099a40a0a 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h @@ -13,6 +13,7 @@ #include "Common/CommonTypes.h" #include "Common/IniFile.h" +#include "InputCommon/ControllerEmu/Control/Control.h" namespace ControllerEmu { @@ -67,6 +68,10 @@ public: void SetControlExpression(int index, const std::string& expression); + void AddInput(Translatability translate, std::string name); + void AddInput(Translatability translate, std::string name, std::string ui_name); + void AddOutput(Translatability translate, std::string name); + template <typename T> void AddSetting(SettingValue<T>* value, const NumericSettingDetails& details, std::common_type_t<T> default_value, std::common_type_t<T> min_value = {}, |
