Update rpcs3/Emu/Io/RB3MidiKeyboard.cpp

Co-authored-by: Megamouse <studienricky89@googlemail.com>
This commit is contained in:
Dark 2023-08-25 13:59:11 -04:00 committed by Megamouse
parent 8bd9a52de3
commit bf8621c921

View File

@ -199,7 +199,7 @@ void usb_device_rb3_midi_keyboard::parse_midi_message(u8* msg, usz size)
// handle note on/off messages
if (size == 3 && (msg[0] == 0x80 || msg[0] == 0x90))
{
bool note_on = (0x10 & msg[0]) == 0x10 && msg[2] != 0;
const bool note_on = (0x10 & msg[0]) == 0x10 && msg[2] != 0;
// handle navigation buttons
switch (msg[1])