From ce7efa33a54fdf37416631057dc13799dc2f847f Mon Sep 17 00:00:00 2001 From: Fedja Beader Date: Wed, 15 May 2024 20:49:43 +0200 Subject: Rename axis tolerance to joystick dead zone + reformat as per discussion --- src/gui/widgets/tabs/setup_joystick.cpp | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) (limited to 'src') diff --git a/src/gui/widgets/tabs/setup_joystick.cpp b/src/gui/widgets/tabs/setup_joystick.cpp index 860f7a251..297f5bafc 100644 --- a/src/gui/widgets/tabs/setup_joystick.cpp +++ b/src/gui/widgets/tabs/setup_joystick.cpp @@ -76,11 +76,11 @@ Setup_Joystick::Setup_Joystick(const Widget2 *const widget) : mJoystickEnabled->setActionEventId("joystick"); mJoystickEnabled->addActionListener(this); - float tolerance = config.getFloatValue("joystickTolerance"); + const float tolerance = config.getFloatValue("joystickTolerance"); mToleranceSlider->setValue(tolerance); // TRANSLATORS: joystick settings tab label - mToleranceLabel->setCaption(_("Axis tolerance: ") - + strprintf("%.2f", tolerance)); + mToleranceLabel->setCaption(_("joystick dead zone: ") + + strprintf("%.2f", tolerance)); mToleranceLabel->setWidth(150); mToleranceLabel->setHeight(20); @@ -137,10 +137,10 @@ void Setup_Joystick::action(const ActionEvent &event) } else if (source == mToleranceSlider) { - float tolerance = mToleranceSlider->getValue(); + const float tolerance = mToleranceSlider->getValue(); // TRANSLATORS: joystick settings tab label - mToleranceLabel->setCaption(_("Axis tolerance: ") - + strprintf("%.2f", tolerance)); + mToleranceLabel->setCaption(_("joystick dead zone: ") + + strprintf("%.2f", tolerance)); } else if (source == mDetectButton) { -- cgit v1.2.3-70-g09d2