summaryrefslogtreecommitdiff
path: root/Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
diff options
context:
space:
mode:
authorJordan Woyak <jordan.woyak@gmail.com>2019-10-27 11:04:08 -0500
committerJordan Woyak <jordan.woyak@gmail.com>2020-02-09 19:08:26 -0600
commit47877ecf2c3b173d77bc55242a22ae9adbabf2be (patch)
treeabf5a0198bf40f731a8f11411112548e141ff5b1 /Source/Core/InputCommon/ControllerEmu/ControlGroup/ControlGroup.h
parent01d69ba81a0a6ece04befa6cf5f14f14c65792e7 (diff)
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.h5
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 = {},