From e8ca05af19d5e924e71ae85e1c58b38b2768edd2 Mon Sep 17 00:00:00 2001 From: Ludovic Marie <136255825+ludovic111@users.noreply.github.com> Date: Wed, 14 Oct 2026 18:42:13 +0200 Subject: [PATCH] Controllers: deadzone percentages rounded --- crates/horizon-client/src/options_ui.rs | 16 ++++++++++++++-- 1 file changed, 14 insertions(+), 2 deletions(-) diff --git a/crates/horizon-client/src/options_ui.rs b/crates/horizon-client/src/options_ui.rs index 677ce3833..b84f32e62 100644 --- a/crates/horizon-client/src/options_ui.rs +++ b/crates/horizon-client/src/options_ui.rs @@ -338,8 +338,20 @@ impl Opt { ), ), Opt::PadLookSensitivity => percent(c, 2.0 * s.controller.look_sensitivity), - Opt::PadMoveDeadzone => percent(c, s.controller.move_deadzone), - Opt::PadLookDeadzone => percent(c, s.controller.look_deadzone), + Opt::PadMoveDeadzone | Opt::PadLookDeadzone => { + let v = if self == Opt::PadMoveDeadzone { + s.controller.move_deadzone + } else { + s.controller.look_deadzone + }; + Text::translate( + "options.percent_value", + &[ + tr(c), + Text::literal(((v * 100.0).round() as i32).to_string()), + ], + ) + } _ => generic(c, self.value_text(s)), } }