diff options
| author | JMC47 <JMC4789@gmail.com> | 2019-04-09 19:30:26 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2019-04-09 19:30:26 -0400 |
| commit | e10a472134fdf557ec35505eb5fb7c74ba9f2af7 (patch) | |
| tree | 9593eb71abc3f724159693d46eb8504ede9529f0 /Source/Core/InputCommon/InputConfig.cpp | |
| parent | 0b8ac0a22f2fcebb7cbd00bbb36fd0c89191d34a (diff) | |
| parent | 5efb717873691fa42447ca0d9d9810b5ad501b42 (diff) | |
Merge pull request #7936 from jordan-woyak/numeric-setting-cleanup
InputCommon: Clean up how numeric settings are handled.
Diffstat (limited to 'Source/Core/InputCommon/InputConfig.cpp')
| -rw-r--r-- | Source/Core/InputCommon/InputConfig.cpp | 17 |
1 files changed, 9 insertions, 8 deletions
diff --git a/Source/Core/InputCommon/InputConfig.cpp b/Source/Core/InputCommon/InputConfig.cpp index 0a6a82d540..a1826f46d1 100644 --- a/Source/Core/InputCommon/InputConfig.cpp +++ b/Source/Core/InputCommon/InputConfig.cpp @@ -13,6 +13,7 @@ #include "Core/HW/Wiimote.h" #include "InputCommon/ControllerEmu/ControlGroup/ControlGroup.h" #include "InputCommon/ControllerEmu/ControllerEmu.h" +#include "InputCommon/ControllerEmu/Setting/NumericSetting.h" #include "InputCommon/ControllerInterface/ControllerInterface.h" #include "InputCommon/InputConfig.h" #include "InputCommon/InputProfile.h" @@ -81,13 +82,13 @@ bool InputConfig::LoadConfig(bool isGC) #if defined(ANDROID) // For use on android touchscreen IR pointer // Check for IR values - if (control_section->Exists("IRWidth") && control_section->Exists("IRHeight") && - control_section->Exists("IRCenter")) + if (control_section->Exists("IRTotalYaw") && control_section->Exists("IRTotalPitch") && + control_section->Exists("IRVerticalOffset")) { use_ir_config = true; - control_section->Get("IRWidth", &ir_values[0]); - control_section->Get("IRHeight", &ir_values[1]); - control_section->Get("IRCenter", &ir_values[2]); + control_section->Get("IRTotalYaw", &ir_values[0]); + control_section->Get("IRTotalPitch", &ir_values[1]); + control_section->Get("IRVerticalOffset", &ir_values[2]); } #endif } @@ -119,9 +120,9 @@ bool InputConfig::LoadConfig(bool isGC) // Only set for wii pads if (!isGC && use_ir_config) { - config.Set("IR/Width", ir_values[0]); - config.Set("IR/Height", ir_values[1]); - config.Set("IR/Center", ir_values[2]); + 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); |
