mirror of
https://github.com/david-schmidt/gsport.git
synced 2025-01-17 13:30:31 +00:00
Map Alt-F4 to exit and Alt-F10 to reset
This commit is contained in:
parent
6a22f2d28b
commit
26d9202ef9
21
src/adb.c
21
src/adb.c
@ -1738,7 +1738,16 @@ adb_physical_key_update(int a2code, int is_up)
|
||||
// OG Disabled special keys (but warp)
|
||||
#ifndef ACTIVEGS
|
||||
case 0x04: /* F4 - emulator config panel */
|
||||
if (CMD_DOWN)
|
||||
{
|
||||
printf("Quit!\n");
|
||||
iwm_shut();
|
||||
my_exit(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
cfg_toggle_config_panel();
|
||||
}
|
||||
break;
|
||||
case 0x05: /* F5 - emulator clipboard paste */
|
||||
clipboard_paste();
|
||||
@ -1778,18 +1787,12 @@ adb_physical_key_update(int a2code, int is_up)
|
||||
case 0x0a: /* F10 - change a2vid paletter */
|
||||
if (SHIFT_DOWN) {
|
||||
#ifdef TOGGLE_STATUS
|
||||
if (CMD_DOWN)
|
||||
{
|
||||
printf("Quit!\n");
|
||||
iwm_shut();
|
||||
my_exit(1);
|
||||
}
|
||||
else
|
||||
{
|
||||
extern void x_toggle_status_lines();
|
||||
x_toggle_status_lines();
|
||||
}
|
||||
#endif
|
||||
} else if (CMD_DOWN) {
|
||||
do_reset();
|
||||
return;
|
||||
} else {
|
||||
change_a2vid_palette((g_a2vid_palette + 1) & 0xf);
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user