Android: add IR pointer modes to InputOverlayPointer

* Disabled: disables the overlay pointer
* Follow: default behaviour, IR pointer follows touch position
* Drag: IR pointer moves relative to the initial touch event position
This commit is contained in:
lynxnb
2022-01-15 19:44:11 +01:00
parent e8bbfc26fe
commit fe9ac4ed1d
9 changed files with 117 additions and 27 deletions

View File

@ -38,9 +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*, 8> android_setting_saveable = {
static constexpr std::array<const char*, 9> android_setting_saveable = {
"ControlScale", "ControlOpacity", "EmulationOrientation", "JoystickRelCenter",
"LastPlatformTab", "MotionControls", "PhoneRumble", "ShowInputOverlay"};
"LastPlatformTab", "MotionControls", "PhoneRumble", "ShowInputOverlay",
"IRMode"};
return std::any_of(
android_setting_saveable.cbegin(), android_setting_saveable.cend(),