added reverse note behavior for the right click
@@ -2112,6 +2112,30 @@ static void drawPianoNoteColumn(Music* music, s32 x, s32 y)
else row->note = NoteStart + n;
}
+ history_add(music->history);
+ }
+ else if(checkMouseClick(&rect, tic_mouse_right))
+ {
+ switch(row->note)
+ {
+ case NoteNone:
+ row->note = NoteStop;
+ row->octave = 0;
+ break;
+ case NoteStop:
+ row->note = NoteStart + n;
+ row->octave = music->last.octave;
+ tic_tool_set_track_row_sfx(row, music->last.sfx);
+ break;
+ default:
+ if(row->note - NoteStart == n)
+ {
+ row->note = NoteNone;
+ row->octave = 0;
+ }
+ else row->note = NoteStart + n;
+ }
+
history_add(music->history);
}
}
