mirror of
https://github.com/fruit-bat/pico-zxspectrum.git
synced 2025-04-19 00:04:01 +03:00
Add F3 as mute toggle
This commit is contained in:
parent
f4cd075b16
commit
4fbbcca2f6
@ -250,6 +250,7 @@ The following folders need to be created on the SD card:
|
||||
| --- | ------ |
|
||||
| AltGr | Symbol |
|
||||
| F1 | Toggle on screen menu |
|
||||
| F3 | Toggle mute |
|
||||
| F4 | Toggle the Z80 moderator. Cycles through 3.5Mhz, 4.0Mhz and unmoderated |
|
||||
| F5 | play current tape |
|
||||
| F6 | play previous tape |
|
||||
|
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
Before Width: | Height: | Size: 42 KiB After Width: | Height: | Size: 40 KiB |
@ -171,7 +171,6 @@ int ZxSpectrumHidKeyboard::processHidReport(hid_keyboard_report_t const *report,
|
||||
if ((m & KEYBOARD_MODIFIER_LEFTCTRL) && !_kiosk) {
|
||||
for (int i = 0; i < 12; ++i) {
|
||||
if (fkp & (1 << i)) {
|
||||
printf("left ctrl F%d pressed\n", i);
|
||||
if (_quickSave) _quickSave->save(_ZxSpectrum, i);
|
||||
}
|
||||
}
|
||||
@ -179,7 +178,6 @@ int ZxSpectrumHidKeyboard::processHidReport(hid_keyboard_report_t const *report,
|
||||
else if (m & KEYBOARD_MODIFIER_LEFTALT) {
|
||||
for (int i = 0; i < 12; ++i) {
|
||||
if (fkp & (1 << i)) {
|
||||
printf("left alt F%d pressed\n", i);
|
||||
if (_quickSave) _quickSave->load(_ZxSpectrum, i);
|
||||
}
|
||||
}
|
||||
@ -188,6 +186,9 @@ int ZxSpectrumHidKeyboard::processHidReport(hid_keyboard_report_t const *report,
|
||||
// F1 open menu
|
||||
if ((fkp & (1 << 0)) && !_kiosk) r = 1;
|
||||
|
||||
// F3 toggle mute
|
||||
if ((fkp & (1 << 2))) _ZxSpectrum->toggleMute();
|
||||
|
||||
// F11 reset to 48k
|
||||
if (fkp & (1 << 10)) _ZxSpectrum->reset(ZxSpectrum48k);
|
||||
// F11 reset to 128k
|
||||
|
@ -82,7 +82,7 @@ static uint8_t kbits[3][6][6] = {
|
||||
// Row 4
|
||||
{ HID_KEY_F8, HID_KEY_F9, HID_KEY_F10, 0, 0, 0 },
|
||||
// Row 5 (Menu, 0, ZX Symbol)
|
||||
{ HID_KEY_F1, 0, 0, 0, 0, /* HID_KEY_ALT_LEFT */ 0 }
|
||||
{ HID_KEY_F1, HID_KEY_F2, HID_KEY_F3, HID_KEY_F4, 0, /* HID_KEY_ALT_LEFT */ 0 }
|
||||
}
|
||||
};
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user