mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-06-16 12:58:33 +02:00
Android: Use touch emulation of IR by default
While having motion control emulation of IR enabled by default makes sense in situations like using a DualShock 4 on a PC, Android has the additional option of touch emulation of IR which seems to be better liked, and the default value which was chosen with PC in mind was carried over to Android without any particular consideration. This change disables motion control emulation of IR by default on Android only.
This commit is contained in:
@ -16,16 +16,15 @@
|
||||
|
||||
namespace ControllerEmu
|
||||
{
|
||||
ControlGroup::ControlGroup(std::string name_, const GroupType type_, CanBeDisabled can_be_disabled_)
|
||||
: name(name_), ui_name(std::move(name_)), type(type_),
|
||||
can_be_disabled(can_be_disabled_ == CanBeDisabled::Yes)
|
||||
ControlGroup::ControlGroup(std::string name_, const GroupType type_, DefaultValue default_value_)
|
||||
: name(name_), ui_name(std::move(name_)), type(type_), default_value(default_value_)
|
||||
{
|
||||
}
|
||||
|
||||
ControlGroup::ControlGroup(std::string name_, std::string ui_name_, const GroupType type_,
|
||||
CanBeDisabled can_be_disabled_)
|
||||
DefaultValue default_value_)
|
||||
: name(std::move(name_)), ui_name(std::move(ui_name_)), type(type_),
|
||||
can_be_disabled(can_be_disabled_ == CanBeDisabled::Yes)
|
||||
default_value(default_value_)
|
||||
{
|
||||
}
|
||||
|
||||
@ -48,8 +47,8 @@ void ControlGroup::LoadConfig(IniFile::Section* sec, const std::string& defdev,
|
||||
const std::string group(base + name + "/");
|
||||
|
||||
// enabled
|
||||
if (can_be_disabled)
|
||||
sec->Get(group + "Enabled", &enabled, true);
|
||||
if (default_value != DefaultValue::AlwaysEnabled)
|
||||
sec->Get(group + "Enabled", &enabled, default_value == DefaultValue::Enabled);
|
||||
|
||||
for (auto& setting : numeric_settings)
|
||||
setting->LoadFromIni(*sec, group);
|
||||
|
Reference in New Issue
Block a user