summaryrefslogtreecommitdiff
path: root/Source/Core
diff options
context:
space:
mode:
authorJosJuice <josjuice@gmail.com>2022-06-26 15:19:46 +0200
committerJosJuice <josjuice@gmail.com>2023-03-07 17:39:34 +0100
commit4c326f2030fda4c23cb4374fef1dee3da0c4822d (patch)
tree83cdba96bc7dd73ab9fb8fb4933bd1b4307a69b5 /Source/Core
parentee2c7dc24b7eee565dc298e5657d9766f712f5e3 (diff)
Android: Remove the in-emulation IR sensitivity options
This too can be set in the normal controller settings now.
Diffstat (limited to 'Source/Core')
-rw-r--r--Source/Core/InputCommon/InputConfig.cpp26
1 files changed, 0 insertions, 26 deletions
diff --git a/Source/Core/InputCommon/InputConfig.cpp b/Source/Core/InputCommon/InputConfig.cpp
index 5e64b60f61..9605aa8c33 100644
--- a/Source/Core/InputCommon/InputConfig.cpp
+++ b/Source/Core/InputCommon/InputConfig.cpp
@@ -35,11 +35,6 @@ bool InputConfig::LoadConfig(InputClass type)
std::string profile[MAX_BBMOTES];
std::string path;
-#if defined(ANDROID)
- bool use_ir_config = false;
- std::string ir_values[3];
-#endif
-
m_dynamic_input_tex_config_manager.Load();
if (SConfig::GetInstance().GetGameID() != "00000000")
@@ -90,18 +85,6 @@ bool InputConfig::LoadConfig(InputClass type)
}
}
}
-#if defined(ANDROID)
- // For use on android touchscreen IR pointer
- // Check for IR values
- if (control_section->Exists("IRTotalYaw") && control_section->Exists("IRTotalPitch") &&
- control_section->Exists("IRVerticalOffset"))
- {
- use_ir_config = true;
- control_section->Get("IRTotalYaw", &ir_values[0]);
- control_section->Get("IRTotalPitch", &ir_values[1]);
- control_section->Get("IRVerticalOffset", &ir_values[2]);
- }
-#endif
}
if (inifile.Load(File::GetUserPath(D_CONFIG_IDX) + m_ini_name + ".ini") &&
@@ -129,15 +112,6 @@ bool InputConfig::LoadConfig(InputClass type)
{
config = *inifile.GetOrCreateSection(controller->GetName());
}
-#if defined(ANDROID)
- // Only set for wii pads
- if (type == InputClass::Wii && use_ir_config)
- {
- config.Set("IR/Total Yaw", ir_values[0]);
- config.Set("IR/Total Pitch", ir_values[1]);
- config.Set("IR/Vertical Offset", ir_values[2]);
- }
-#endif
controller->LoadConfig(&config);
controller->UpdateReferences(g_controller_interface);
controller_names.push_back(controller->GetName());