mirror of
https://github.com/shadps4-emu/shadPS4.git
synced 2025-06-25 11:56:18 +00:00
Add outer deadzone config (#2348)
* Add outer deadzone * Documentation * Add max outer deadzone to the controller remapping GUI * Fix init values * fix GUI saving syntax
This commit is contained in:
parent
00465d5e41
commit
f5d64239cb
4 changed files with 57 additions and 31 deletions
|
@ -220,10 +220,10 @@ void ControlSettings::SaveControllerConfig(bool CloseOnSave) {
|
|||
lines.push_back("# Range of deadzones: 1 (almost none) to 127 (max)");
|
||||
|
||||
std::string deadzonevalue = std::to_string(ui->LeftDeadzoneSlider->value());
|
||||
lines.push_back("analog_deadzone = leftjoystick, " + deadzonevalue);
|
||||
lines.push_back("analog_deadzone = leftjoystick, " + deadzonevalue + ", 127");
|
||||
|
||||
deadzonevalue = std::to_string(ui->RightDeadzoneSlider->value());
|
||||
lines.push_back("analog_deadzone = rightjoystick, " + deadzonevalue);
|
||||
lines.push_back("analog_deadzone = rightjoystick, " + deadzonevalue + ", 127");
|
||||
|
||||
std::vector<std::string> save;
|
||||
bool CurrentLineEmpty = false, LastLineEmpty = false;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue