From 12605dfbbf2d1bdd8d93d74d50086146dc542516 Mon Sep 17 00:00:00 2001 From: seangoodvibes <138174805+seangoodvibes@users.noreply.github.com> Date: Tue, 31 Oct 2023 00:04:18 -0400 Subject: [PATCH] Fixed Sticky Shift Conflict Fixed conflict when Sticky Shift functionality is enabled with the Shift Acceleration that was added in #636 Fixed it by calling isButtonPressed instead of isShiftButtonPressed in order to check if the Shift button is actually being pressed rather than "stickily pressed." --- src/deluge/gui/ui/sound_editor.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/deluge/gui/ui/sound_editor.cpp b/src/deluge/gui/ui/sound_editor.cpp index b9eb48c407..be7c42dfde 100644 --- a/src/deluge/gui/ui/sound_editor.cpp +++ b/src/deluge/gui/ui/sound_editor.cpp @@ -650,7 +650,7 @@ ActionResult SoundEditor::horizontalEncoderAction(int32_t offset) { void SoundEditor::selectEncoderAction(int8_t offset) { - if (Buttons::isShiftButtonPressed()) { + if (Buttons::isButtonPressed(deluge::hid::button::SHIFT)) { offset = offset * 5; }