mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-07-21 05:09:34 -06:00
InputCommon: Clean up creation of inputs.
This commit is contained in:
@ -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 = {},
|
||||
|
Reference in New Issue
Block a user