Skip to content

Commit

Permalink
Fixed Sticky Shift Conflict
Browse files Browse the repository at this point in the history
Fixed conflict when Sticky Shift functionality is enabled with the Shift Acceleration that was added in SynthstromAudible#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."
  • Loading branch information
seangoodvibes committed Oct 31, 2023
1 parent 1556628 commit 12605df
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/deluge/gui/ui/sound_editor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down

0 comments on commit 12605df

Please sign in to comment.