Android: add an option to recenter IR after every pointer interaction

This commit is contained in:
lynxnb
2022-01-16 01:17:23 +01:00
parent fe9ac4ed1d
commit b4edd16f24
7 changed files with 59 additions and 17 deletions

View File

@ -38,10 +38,10 @@ bool IsSettingSaveable(const Config::Location& config_location)
// TODO: Kill the current Android controller mappings system
if (config_location.section == "Android")
{
static constexpr std::array<const char*, 9> android_setting_saveable = {
"ControlScale", "ControlOpacity", "EmulationOrientation", "JoystickRelCenter",
"LastPlatformTab", "MotionControls", "PhoneRumble", "ShowInputOverlay",
"IRMode"};
static constexpr std::array<const char*, 10> android_setting_saveable = {
"ControlScale", "ControlOpacity", "EmulationOrientation", "JoystickRelCenter",
"LastPlatformTab", "MotionControls", "PhoneRumble", "ShowInputOverlay",
"IRMode", "IRAlwaysRecenter"};
return std::any_of(
android_setting_saveable.cbegin(), android_setting_saveable.cend(),