mirror of
https://github.com/fruit-bat/pico-zxspectrum.git
synced 2025-04-19 00:04:01 +03:00
Refresh menu on F1 for other targets
This commit is contained in:
parent
82b8ce5a51
commit
b43145174b
Binary file not shown.
Binary file not shown.
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 22 KiB |
@ -2,6 +2,9 @@
|
||||
<!-- Generator: Circuit Diagram, cdlibrary.dll 4.0.0.0 -->
|
||||
<!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd">
|
||||
<svg version="1.1" width="420" height="320" xmlns="http://www.w3.org/2000/svg">
|
||||
<text x="132" y="200" style="font-family:Arial;font-size:12px;text-anchor:end" dominant-baseline="middle" transform="rotate(0, 132, 200)">RP AUDIO IN</text>
|
||||
<line x1="143" y1="200" x2="150" y2="200" style="stroke:rgb(0, 0, 0);stroke-linecap:square;stroke-width:2" />
|
||||
<ellipse cx="140" cy="200" rx="3" ry="3" style="fill-opacity:0;fill:rgb(0, 0, 0);stroke:rgb(0, 0, 0);stroke-width:2" />
|
||||
<text x="288" y="60" style="font-family:Arial;font-size:12px;text-anchor:start" dominant-baseline="middle" transform="rotate(0, 288, 60)">RP VBUS</text>
|
||||
<line x1="270" y1="60" x2="277" y2="60" style="stroke:rgb(0, 0, 0);stroke-linecap:square;stroke-width:2" />
|
||||
<ellipse cx="280" cy="60" rx="3" ry="3" style="fill-opacity:0;fill:rgb(0, 0, 0);stroke:rgb(0, 0, 0);stroke-width:2" />
|
||||
|
@ -119,7 +119,10 @@ extern "C" void __not_in_flash_func(process_kbd_report)(hid_keyboard_report_t c
|
||||
else {
|
||||
r = keyboard1.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
void __not_in_flash_func(process_picomputer_kbd_report)(hid_keyboard_report_t const *report, hid_keyboard_report_t const *prev_report) {
|
||||
@ -130,7 +133,10 @@ void __not_in_flash_func(process_picomputer_kbd_report)(hid_keyboard_report_t co
|
||||
else {
|
||||
r = keyboard2.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
@ -121,7 +121,10 @@ extern "C" void __not_in_flash_func(process_kbd_report)(hid_keyboard_report_t c
|
||||
else {
|
||||
r = keyboard1.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
void __not_in_flash_func(process_picomputer_kbd_report)(hid_keyboard_report_t const *report, hid_keyboard_report_t const *prev_report) {
|
||||
@ -132,7 +135,10 @@ void __not_in_flash_func(process_picomputer_kbd_report)(hid_keyboard_report_t co
|
||||
else {
|
||||
r = keyboard2.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
void __not_in_flash_func(core1_main)() {
|
||||
|
@ -120,7 +120,10 @@ extern "C" void __not_in_flash_func(process_kbd_report)(hid_keyboard_report_t c
|
||||
else {
|
||||
r = keyboard1.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
void __not_in_flash_func(process_picomputer_kbd_report)(hid_keyboard_report_t const *report, hid_keyboard_report_t const *prev_report) {
|
||||
@ -131,7 +134,10 @@ void __not_in_flash_func(process_picomputer_kbd_report)(hid_keyboard_report_t co
|
||||
else {
|
||||
r = keyboard2.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
void __not_in_flash_func(core1_main)() {
|
||||
|
@ -91,9 +91,9 @@ static bool showMenu = true;
|
||||
static bool toggleMenu = false;
|
||||
|
||||
void print(hid_keyboard_report_t const *report) {
|
||||
printf("HID key report modifiers %2.2X report ", report->modifier);
|
||||
for(int i = 0; i < 6; ++i) printf("%2.2X", report->keycode[i]);
|
||||
printf("\n");
|
||||
printf("HID key report modifiers %2.2X report ", report->modifier);
|
||||
for(int i = 0; i < 6; ++i) printf("%2.2X", report->keycode[i]);
|
||||
printf("\n");
|
||||
}
|
||||
|
||||
extern "C" void __not_in_flash_func(process_kbd_mount)(uint8_t dev_addr, uint8_t instance) {
|
||||
@ -107,8 +107,8 @@ extern "C" void __not_in_flash_func(process_kbd_unmount)(uint8_t dev_addr, uint
|
||||
extern "C" void __not_in_flash_func(process_kbd_report)(hid_keyboard_report_t const *report, hid_keyboard_report_t const *prev_report) {
|
||||
#if 0
|
||||
// Some help debugging keyboard input/drivers
|
||||
printf("PREV ");print(prev_report);
|
||||
printf("CURR ");print(report);
|
||||
printf("PREV ");print(prev_report);
|
||||
printf("CURR ");print(report);
|
||||
#endif
|
||||
|
||||
int r;
|
||||
@ -118,7 +118,10 @@ extern "C" void __not_in_flash_func(process_kbd_report)(hid_keyboard_report_t c
|
||||
else {
|
||||
r = keyboard1.processHidReport(report, prev_report);
|
||||
}
|
||||
if (r == 1) toggleMenu = true;
|
||||
if (r == 1) {
|
||||
toggleMenu = true;
|
||||
picoRootWin.repaint();
|
||||
}
|
||||
}
|
||||
|
||||
#ifdef USE_PS2_KBD
|
||||
|
Loading…
x
Reference in New Issue
Block a user