diff options
author | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 20:49:43 +0200 |
---|---|---|
committer | Fedja Beader <fedja@protonmail.ch> | 2024-05-15 20:50:18 +0200 |
commit | ce7efa33a54fdf37416631057dc13799dc2f847f (patch) | |
tree | a0223df3b3a8ce2d7adfa270f45a25f930309d42 /src | |
parent | a4d7bdc0bbd269d64fc885769908b79ff1b85041 (diff) | |
download | manaverse-ce7efa33a54fdf37416631057dc13799dc2f847f.tar.gz manaverse-ce7efa33a54fdf37416631057dc13799dc2f847f.tar.bz2 manaverse-ce7efa33a54fdf37416631057dc13799dc2f847f.tar.xz manaverse-ce7efa33a54fdf37416631057dc13799dc2f847f.zip |
Rename axis tolerance to joystick dead zone + reformat as per discussion
Diffstat (limited to 'src')
-rw-r--r-- | src/gui/widgets/tabs/setup_joystick.cpp | 12 |
1 files changed, 6 insertions, 6 deletions
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) { |