1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-29 12:50:28 +00:00

Corrects virtual F keys.

They're FUNC+, not SHIFT+.
This commit is contained in:
Thomas Harte 2020-03-06 21:56:08 -05:00
parent a51fe70498
commit a560601338

View File

@ -127,24 +127,24 @@ class ConcreteMachine:
m6502_.set_reset_line(isPressed);
break;
#define ShiftedKey(source, dest) \
#define FuncShiftedKey(source, dest) \
case source: \
set_key_state(KeyShift, isPressed); \
set_key_state(KeyFunc, isPressed); \
set_key_state(dest, isPressed); \
break;
ShiftedKey(KeyF1, Key1);
ShiftedKey(KeyF2, Key2);
ShiftedKey(KeyF3, Key3);
ShiftedKey(KeyF4, Key4);
ShiftedKey(KeyF5, Key5);
ShiftedKey(KeyF6, Key6);
ShiftedKey(KeyF7, Key7);
ShiftedKey(KeyF8, Key8);
ShiftedKey(KeyF9, Key9);
ShiftedKey(KeyF0, Key0);
FuncShiftedKey(KeyF1, Key1);
FuncShiftedKey(KeyF2, Key2);
FuncShiftedKey(KeyF3, Key3);
FuncShiftedKey(KeyF4, Key4);
FuncShiftedKey(KeyF5, Key5);
FuncShiftedKey(KeyF6, Key6);
FuncShiftedKey(KeyF7, Key7);
FuncShiftedKey(KeyF8, Key8);
FuncShiftedKey(KeyF9, Key9);
FuncShiftedKey(KeyF0, Key0);
#undef ShiftedKey
#undef FuncShiftedKey
}
}