From 18b7ff1fb773a665152a95f4e46cf6964f884b66 Mon Sep 17 00:00:00 2001 From: tildearrow Date: Sat, 1 Nov 2025 03:42:21 -0500 Subject: [PATCH] GUI: just set chordInputOffset to 0 --- src/gui/gui.cpp | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/src/gui/gui.cpp b/src/gui/gui.cpp index d5560ccec..182e17330 100644 --- a/src/gui/gui.cpp +++ b/src/gui/gui.cpp @@ -1886,10 +1886,8 @@ void FurnaceGUI::keyDown(SDL_Event& ev) { } void FurnaceGUI::keyUp(SDL_Event& ev) { - // this is very, very lazy... - if (--chordInputOffset<0) { - chordInputOffset=0; - } + // this is very, very lazy... but it works. + chordInputOffset=0; } bool dirExists(String s) { @@ -4239,7 +4237,7 @@ bool FurnaceGUI::loop() { doAction(action); } else switch (msg.type&0xf0) { case TA_MIDI_NOTE_OFF: - if (--chordInputOffset<0) chordInputOffset=0; + chordInputOffset=0; break; case TA_MIDI_NOTE_ON: if (midiMap.valueInputStyle==0 || midiMap.valueInputStyle>3 || cursor.xFine==0) {