Skip to content

Commit

Permalink
dial menu adjustment (#626)
Browse files Browse the repository at this point in the history
use same sensitivity for both vol menu and scroll presets modes.
  • Loading branch information
NoSloppy authored Feb 25, 2024
1 parent 0515afc commit c0f1f1d
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions props/saber_BC_buttons.h
Original file line number Diff line number Diff line change
Expand Up @@ -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_) {
Expand Down

0 comments on commit c0f1f1d

Please sign in to comment.