Skip to content

Commit 18b7ff1

Browse files
committed
GUI: just set chordInputOffset to 0
1 parent 173f59d commit 18b7ff1

File tree

1 file changed

+3
-5
lines changed

1 file changed

+3
-5
lines changed

src/gui/gui.cpp

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1886,10 +1886,8 @@ void FurnaceGUI::keyDown(SDL_Event& ev) {
18861886
}
18871887

18881888
void FurnaceGUI::keyUp(SDL_Event& ev) {
1889-
// this is very, very lazy...
1890-
if (--chordInputOffset<0) {
1891-
chordInputOffset=0;
1892-
}
1889+
// this is very, very lazy... but it works.
1890+
chordInputOffset=0;
18931891
}
18941892

18951893
bool dirExists(String s) {
@@ -4239,7 +4237,7 @@ bool FurnaceGUI::loop() {
42394237
doAction(action);
42404238
} else switch (msg.type&0xf0) {
42414239
case TA_MIDI_NOTE_OFF:
4242-
if (--chordInputOffset<0) chordInputOffset=0;
4240+
chordInputOffset=0;
42434241
break;
42444242
case TA_MIDI_NOTE_ON:
42454243
if (midiMap.valueInputStyle==0 || midiMap.valueInputStyle>3 || cursor.xFine==0) {

0 commit comments

Comments
 (0)