diff options
| author | JosJuice <josjuice@gmail.com> | 2023-03-11 12:37:44 +0100 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2023-03-11 12:37:44 +0100 |
| commit | 62ff2f1030ae95ac0e5bf9ae02e9cc78664ab83e (patch) | |
| tree | 14c8c2abdaa0eb4c4dd55b4b8171bd354356b82e /Source/Core/InputCommon/InputConfig.cpp | |
| parent | 7b5c989f2d55796e5d925144d1a2f30bac4521b1 (diff) | |
| parent | 75fb1a7edfb12f490b08ab0b76a8e2f1536d2d9b (diff) | |
Merge pull request #11385 from JosJuice/android-input-overhaul
Android input overhaul
Diffstat (limited to 'Source/Core/InputCommon/InputConfig.cpp')
| -rw-r--r-- | Source/Core/InputCommon/InputConfig.cpp | 26 |
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()); |
