Merge pull request #782 from RachelBryk/radius

Set the default radius to 100 for non-gcpad analog sticks.
This commit is contained in:
Lioncash 2014-08-14 17:15:03 -04:00
commit 001c9a18fa
1 changed files with 5 additions and 1 deletions

View File

@ -144,7 +144,11 @@ ControllerEmu::AnalogStick::AnalogStick(const char* const _name) : ControlGroup(
controls.emplace_back(new Input(_trans("Modifier"))); controls.emplace_back(new Input(_trans("Modifier")));
settings.emplace_back(new Setting(_trans("Radius"), 0.7f, 0, 100)); // Default to 100 radius for everything but gcpad.
if (name == "Stick" || name == "Left Stick" || name == "Right Stick")
settings.emplace_back(new Setting(_trans("Radius"), 1.0f, 0, 100));
else
settings.emplace_back(new Setting(_trans("Radius"), 0.7f, 0, 100));
settings.emplace_back(new Setting(_trans("Dead Zone"), 0, 0, 50)); settings.emplace_back(new Setting(_trans("Dead Zone"), 0, 0, 50));
} }