diff options
| author | Léo Lam <leo@leolam.fr> | 2020-04-27 17:56:01 +0200 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2020-04-27 17:56:01 +0200 |
| commit | 88ae4c7914af3a5487bdbff2920973833b77d6ce (patch) | |
| tree | a36e8d3a920217ce64e9ffd35718ac4481042e66 /Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp | |
| parent | c36a78eff85d616b9f07d7dde42da1446051d6ae (diff) | |
| parent | 18a4afb053e8b5f356e22cfc5aec8cc27700710b (diff) | |
Merge pull request #8729 from JosJuice/android-touch-ir-default
Android: Use touch emulation of IR by default
Diffstat (limited to 'Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp')
| -rw-r--r-- | Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp | 11 |
1 files changed, 9 insertions, 2 deletions
diff --git a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp index f617adaf6f..be90bf532c 100644 --- a/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp +++ b/Source/Core/InputCommon/ControllerEmu/ControlGroup/IMUCursor.cpp @@ -17,8 +17,15 @@ namespace ControllerEmu { IMUCursor::IMUCursor(std::string name, std::string ui_name) - : ControlGroup(std::move(name), std::move(ui_name), GroupType::IMUCursor, - ControlGroup::CanBeDisabled::Yes) + : ControlGroup( + std::move(name), std::move(ui_name), GroupType::IMUCursor, +#ifdef ANDROID + // Enabling this on Android devices which have an accelerometer and gyroscope prevents + // touch controls from being used for pointing, and touch controls generally work better + ControlGroup::DefaultValue::Disabled) +#else + ControlGroup::DefaultValue::Enabled) +#endif { AddInput(Translate, _trans("Recenter")); |
