From c0f1f1deca236854b5a208facc9d1dd7f2feab4c Mon Sep 17 00:00:00 2001 From: NoSloppy <53964195+NoSloppy@users.noreply.github.com> Date: Sat, 24 Feb 2024 20:36:45 -0500 Subject: [PATCH] dial menu adjustment (#626) use same sensitivity for both vol menu and scroll presets modes. --- props/saber_BC_buttons.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/props/saber_BC_buttons.h b/props/saber_BC_buttons.h index e21637251..056cedccb 100644 --- a/props/saber_BC_buttons.h +++ b/props/saber_BC_buttons.h @@ -582,9 +582,9 @@ class SaberBCButtons : public PROP_INHERIT_PREFIX PropBase { void DetectMenuTurn() { float a = fusor.angle2() - current_menu_angle_; if (is_pointing_up()) return; + if (a > M_PI) a-=M_PI*2; + if (a < -M_PI) a+=M_PI*2; if (mode_volume_) { - if (a > M_PI) a-=M_PI*2; - if (a < -M_PI) a+=M_PI*2; if (a > M_PI / 6) VolumeUp(); if (a < -M_PI / 6) VolumeDown(); } else if (scroll_presets_) {