Some interface/keys cleanup

* Condensed reboot code path into reset codepath
    * Reset sequence now checks for openapple or closedapple key and routes accordingly
    * Pause/Break key is now strictly emulation pause key
    * F4 is now unused
    * End key is now mapped as //e reset key (easier to hit, and less likely window manager is using it)
    * PrintScreen/SysReq key is now unused
This commit is contained in:
Aaron Culliney 2013-11-30 14:14:22 -08:00
parent 05e8e0f4a2
commit 2ce40ddba9
5 changed files with 76 additions and 68 deletions

View File

@ -2704,14 +2704,16 @@ continue:
Exception handlers Exception handlers
------------------------------------------------------------------------- */ ------------------------------------------------------------------------- */
exception: testb $RebootSig, %al exception: testb $ResetSig, %al
jnz emul_reinit jnz ex_reset0
testb $ResetSig, %al
jnz ex_reset
testb $DebugStepSig, %al testb $DebugStepSig, %al
jnz ex_step jnz ex_step
jmp ex_irq jmp ex_irq
ex_reset0: testb $0xff, SN(joy_button0) // OpenApple
jnz emul_reinit
testb $0xff, SN(joy_button1) // ClosedApple
jnz emul_reinit
ex_reset: movb $0, SN(cpu65__signal) ex_reset: movb $0, SN(cpu65__signal)
movw $0xFFFC, EffectiveAddr // ROM reset vector movw $0xFFFC, EffectiveAddr // ROM reset vector
GetFromEA_W GetFromEA_W
@ -2766,7 +2768,7 @@ exit_cpu65_run: SaveState // Return to timing
popal popal
ret ret
emul_reinit: movb $0, SN(cpu65__signal) // EXIT CPURUN emul_reinit: movb $0, SN(cpu65__signal) // Return to timing loop ...
movb $1, SN(emul_reinitialize) movb $1, SN(emul_reinitialize)
popal popal
ret ret

View File

@ -83,7 +83,6 @@ extern uint8_t emul_reinitialize;
#endif /* !__ASSEMBLER__ */ #endif /* !__ASSEMBLER__ */
#define RebootSig 0x01
#define ResetSig 0x02 #define ResetSig 0x02
#define DebugStepSig 0x04 #define DebugStepSig 0x04
#define IRQ6522 0x08 #define IRQ6522 0x08

View File

@ -37,6 +37,8 @@
#include "cpu.h" #include "cpu.h"
#include "prefs.h" #include "prefs.h"
#define MOUSETEXT_BEGIN 0x90
static struct stat statbuf; static struct stat statbuf;
static int altdrive; static int altdrive;
@ -78,10 +80,6 @@ extern long js_timelimit;
void c_load_interface_font() void c_load_interface_font()
{ {
/* Only codes 0x20 -- 0x8A are actually used. But I feel safer
* explicitly initializing all of them.
*/
video_loadfont_int(0x00,0x40,ucase_glyphs); video_loadfont_int(0x00,0x40,ucase_glyphs);
video_loadfont_int(0x40,0x20,ucase_glyphs); video_loadfont_int(0x40,0x20,ucase_glyphs);
video_loadfont_int(0x60,0x20,lcase_glyphs); video_loadfont_int(0x60,0x20,lcase_glyphs);
@ -90,6 +88,7 @@ void c_load_interface_font()
video_loadfont_int(0xE0,0x20,lcase_glyphs); video_loadfont_int(0xE0,0x20,lcase_glyphs);
video_loadfont_int(0x80,11,interface_glyphs); video_loadfont_int(0x80,11,interface_glyphs);
video_loadfont_int(MOUSETEXT_BEGIN,0x20,mousetext_glyphs);
} }
/* ------------------------------------------------------------------------- /* -------------------------------------------------------------------------
@ -931,7 +930,7 @@ void c_interface_parameters()
//1. 5. 10. 15. 20. 25. 30. 35. 40. 45. 50. 55. 60. 65. 70. 75. 80.", //1. 5. 10. 15. 20. 25. 30. 35. 40. 45. 50. 55. 60. 65. 70. 75. 80.",
{ "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", { "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| |", "| |",
"| Apple //ix |", "| @ Apple //ix @ |",
"| |", "| |",
"||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| |", "| |",
@ -946,12 +945,12 @@ void c_interface_parameters()
"||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| Emulator Hotkeys |", "| Emulator Hotkeys |",
"| |", "| |",
"| F1 F2: Slot6 Disk Drive A, Drive B F4 : Un/Pause Emulation |", "| F1 F2: Insert Diskette in Slot6 Disk Drive A or Drive B |",
"| F5 : Show Keyboard Layout F7 : 6502 VM Debugger |", "| F5 : Show Keyboard Layout F7 : 6502 Debugger |",
"| F9 : Toggle Between CPU% / ALT CPU% Speeds |", "| F9 : Toggle Between CPU% / ALT CPU% Speeds |",
"| F10 : Show This Menu ESC exits menu |", "| F10 : Show This Menu |",
"| |", "| |",
"| For interface help press '?' |", "| For interface help press '?' ... ESC exits menu |",
"||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||" }; "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||" };
@ -965,6 +964,9 @@ void c_interface_parameters()
cur_x = 0; cur_x = 0;
video_setpage( 0 ); video_setpage( 0 );
screen[ 2 ][ 33 ] = MOUSETEXT_BEGIN + 0x01;
screen[ 2 ][ 46 ] = MOUSETEXT_BEGIN + 0x00;
c_interface_translate_screen( screen ); c_interface_translate_screen( screen );
c_interface_print_screen( screen ); c_interface_print_screen( screen );
@ -1434,7 +1436,8 @@ void c_interface_parameters()
/* reboot machine if different */ /* reboot machine if different */
if (current_mode != apple_mode) if (current_mode != apple_mode)
{ {
cpu65_interrupt(RebootSig); // FIXME : broken ...
//cpu65_interrupt(RebootSig);
} }
c_interface_exit(); c_interface_exit();
@ -1442,29 +1445,27 @@ void c_interface_parameters()
} }
else if ((ch == '?') && (option != OPT_PATH)) else if ((ch == '?') && (option != OPT_PATH))
{ {
#define MAINHELP_SUBMENU_H 20 #define MAINHELP_SUBMENU_H 18
#define MAINHELP_SUBMENU_W 40 #define MAINHELP_SUBMENU_W 40
char submenu[MAINHELP_SUBMENU_H][MAINHELP_SUBMENU_W+1] = char submenu[MAINHELP_SUBMENU_H][MAINHELP_SUBMENU_W+1] =
//1. 5. 10. 15. 20. 25. 30. 35. 40. //1. 5. 10. 15. 20. 25. 30. 35. 40.
{ "||||||||||||||||||||||||||||||||||||||||", { "||||||||||||||||||||||||||||||||||||||||",
"| |",
"| Movement : Up/Down arrows |", "| Movement : Up/Down arrows |",
"| |", "| |",
"| Change : Left/Right arrows to |", "| Change : Left/Right arrows to |",
"| Values : toggle or press the |", "| Values : toggle or press the |",
"| 'Return' key to select |", "| 'Return' key to select |",
"| |",
"||||||||||||||||||||||||||||||||||||||||", "||||||||||||||||||||||||||||||||||||||||",
"| |",
"| Hotkeys used while emulator running: |", "| Hotkeys used while emulator running: |",
"| |", "| |",
"| F1 F2: Slot6 Disk Drive A, Drive B |", "| F1 F2: Slot6 Disk Drive A, Drive B |",
"| F4 : Toggle Emulation Pause |",
"| F5 : Show Keyboard Layout |", "| F5 : Show Keyboard Layout |",
"| F7 : Virtual 6502 Debugger |", "| F7 : 6502 Debugger |",
"| F9 : Toggle Emulator Speed |", "| F9 : Toggle Emulator Speed |",
"| F10 : Main Menu |", "| F10 : Main Menu |",
"| |", "| |",
"| Ctrl-LeftAlt-End Reboots //e |",
"| Pause/Brk : Pause Emulator |",
"||||||||||||||||||||||||||||||||||||||||" }; "||||||||||||||||||||||||||||||||||||||||" };
c_interface_print_submenu_centered(submenu[0], MAINHELP_SUBMENU_W, MAINHELP_SUBMENU_H); c_interface_print_submenu_centered(submenu[0], MAINHELP_SUBMENU_W, MAINHELP_SUBMENU_H);
while ((ch = c_mygetch(1)) == -1) while ((ch = c_mygetch(1)) == -1)
@ -1686,34 +1687,44 @@ void c_interface_keyboard_layout()
{ "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", { "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| Apple //e US Keyboard Layout |", "| Apple //e US Keyboard Layout |",
"||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| | |", "| esc del RESET |",
"|1! 2@ 3# 4$ 5% 6^ 7& 8* 9( 0) -_ =+ dl| |", "| `~ 1! 2@ 3# 4$ 5% 6^ 7& 8* 9( 0) -_ =+ backspace |",
"| Q W E R T Y U I O P [{ ]} \\| | |", "| tab Q W E R T Y U I O P [{ ]} \\| |",
"|cp A S D F G H J K L ;: '\" CR | |", "| caps A S D F G H J K L ;: '\" return @ |",
"|sh Z X C V B N M ,< .> /? sh | |", "| shift Z X C V B N M ,< .> /? shift @ @ |",
"|ctrl | |", "| ctrl @ space @ ctrl @ |",
"| | |", "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| Where dl is DEL, cp is CAPS, CR is | |", "| | Menus: |",
"| RETURN, sh is SHIFT, ctrl is CONTROL.| |", "| Left Alt is @ (OpenApple) key (Joystick button 1) | F1: Disk Drive A |",
"| Arrow keys are as is. | |", "| Right Alt is @ (ClosedApple) key (Joystick button 2) | F2: Disk Drive B |",
"| | |", "| End is //e RESET key | F5: This Menu |",
"| | |", "| | F7: 6502 Debugger|",
"| | |", "| Ctrl-End triggers //e reset vector |F10: Options |",
"| Ctrl-PrntScrn/SysRq reboots emulator | |", "| Ctrl-LeftAlt-End triggers //e reboot ||||||||||||||||||||",
"| Ctrl-Pause/Break is Apple reset | |", "| Ctrl-RightAlt-End triggers //e system test |",
"| Pause/Break alone pauses emulation | |", "| |",
"| Alt Left and Alt Right are Apple | |", "| Pause/Break key pauses emulation |",
"| Keys (Joystick buttons 0 & 1) | |", "| |",
"||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||", "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||",
"| (Press any key to exit) |", "| (Press any key to exit) |",
"||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||" }; "||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||" };
// TODO : joystick emulation? and F-keys
int i; int i;
video_setpage( 0 ); video_setpage( 0 );
// arrows
screen[ 6 ][ 68 ] = MOUSETEXT_BEGIN + 0x0b;
screen[ 7 ][ 67 ] = MOUSETEXT_BEGIN + 0x08;
screen[ 7 ][ 69 ] = MOUSETEXT_BEGIN + 0x15;
screen[ 8 ][ 68 ] = MOUSETEXT_BEGIN + 0x0a;
// apple keys
screen[ 8 ][ 25 ] = MOUSETEXT_BEGIN + 0x01;
screen[ 8 ][ 47 ] = MOUSETEXT_BEGIN + 0x00;
screen[ 11 ][ 14 ] = MOUSETEXT_BEGIN + 0x01;
screen[ 12 ][ 15 ] = MOUSETEXT_BEGIN + 0x00;
c_interface_translate_screen(screen); c_interface_translate_screen(screen);
c_interface_print_screen( screen ); c_interface_print_screen( screen );

View File

@ -72,9 +72,9 @@ static int apple_ii_keymap_plain[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, -1, JB1, RST, kHOME, -1, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, -1, /* 96-103 */
kPGUP, 8, 21, kEND, -1, kPGDN, JB2, -1, /* 104-111 */ kPGUP, 8, 21, kEND, -1, kPGDN, JB2, -1, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, kF4 /* (pause) */,/* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static int apple_ii_keymap_ctrl[128] = static int apple_ii_keymap_ctrl[128] =
@ -90,9 +90,9 @@ static int apple_ii_keymap_ctrl[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, BOT, JB1, RST, kHOME, -1, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, -1, /* 96-103 */
kPGUP, 8, 21, kEND, -1, kPGDN, JB2, -1, /* 104-111 */ kPGUP, 8, 21, kEND, -1, kPGDN, JB2, -1, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, RST, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static int apple_ii_keymap_shifted[128] = static int apple_ii_keymap_shifted[128] =
@ -108,9 +108,9 @@ static int apple_ii_keymap_shifted[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, -1, JB1, RST, kHOME, -1, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, -1, /* 96-103 */
kPGUP, 8, 21, kEND, -1, kPGDN, JB2, -1, /* 104-111 */ kPGUP, 8, 21, kEND, -1, kPGDN, JB2, -1, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, kF4 /* pause */, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
/* ---------------------------------------------------- /* ----------------------------------------------------
@ -129,9 +129,9 @@ static int apple_iie_keymap_plain[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, -1, JB1, RST, kHOME, 11, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, 11, /* 96-103 */
kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */ kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, kF4 /* pause */, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static int apple_iie_keymap_ctrl[128] = static int apple_iie_keymap_ctrl[128] =
@ -147,9 +147,9 @@ static int apple_iie_keymap_ctrl[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, BOT, JB1, RST, kHOME, 11, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, 11, /* 96-103 */
kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */ kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, RST, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static int apple_iie_keymap_shifted[128] = static int apple_iie_keymap_shifted[128] =
@ -165,9 +165,9 @@ static int apple_iie_keymap_shifted[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, -1, JB1, RST, kHOME, 11, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, 11, /* 96-103 */
kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */ kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, kF4 /* pause */, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static int apple_iie_keymap_caps[128] = static int apple_iie_keymap_caps[128] =
@ -183,9 +183,9 @@ static int apple_iie_keymap_caps[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, -1, JB1, RST, kHOME, 11, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, 11, /* 96-103 */
kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */ kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, kF4 /* pause */, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static int apple_iie_keymap_shift_ctrl[128] = static int apple_iie_keymap_shift_ctrl[128] =
@ -201,9 +201,9 @@ static int apple_iie_keymap_shift_ctrl[128] =
J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */ J_U, JUR, S_D, J_L, J_C, J_R, S_I, JDL, /* 72-79 */
J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */ J_D, JDR, -1, -1, -1, kF11, kF12, -1, /* 80-87 */
-1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */ -1, -1, -1, -1, -1, -1, -1, -1, /* 88-95 */
-1, -1, -1, BOT, JB1, RST, kHOME, 11, /* 96-103 */ -1, -1, -1, -1, JB1, -1, kHOME, 11, /* 96-103 */
kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */ kPGUP, 8, 21, kEND, 10, kPGDN, JB2, 127, /* 104-111 */
-1, -1, -1, -1, -1, -1, -1, RST, /* 112-119 */ -1, -1, -1, -1, -1, -1, -1, kPAUSE, /* 112-119 */
-1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */ -1, -1, -1, -1, -1, -1, -1, -1 }; /* 120-127 */
static char key_pressed[ 256 ]; static char key_pressed[ 256 ];
@ -234,12 +234,11 @@ void c_periodic_update(int dummysig) {
{ {
switch (current_key) switch (current_key)
{ {
case RST: case kEND:
cpu65_interrupt(ResetSig); if (key_pressed[ SCODE_L_CTRL ] || key_pressed[ SCODE_R_CTRL ])
break; {
cpu65_interrupt(ResetSig);
case BOT: }
cpu65_interrupt(RebootSig);
break; break;
case J_C: case J_C:
@ -263,7 +262,7 @@ void c_periodic_update(int dummysig) {
pthread_mutex_unlock(&interface_mutex); pthread_mutex_unlock(&interface_mutex);
break; break;
case kF4: case kPAUSE:
pthread_mutex_lock(&interface_mutex); pthread_mutex_lock(&interface_mutex);
SoundSystemPause(); SoundSystemPause();
while (c_mygetch(1) == -1) while (c_mygetch(1) == -1)

View File

@ -42,8 +42,6 @@
#define kF10 137 #define kF10 137
#define kF11 138 #define kF11 138
#define kF12 139 #define kF12 139
#define kPRNT 140
#define RST kPRNT
#define J_U 141 #define J_U 141
#define J_D 142 #define J_D 142
@ -62,7 +60,6 @@
#define S_I 153 #define S_I 153
#define J_C 154 #define J_C 154
#define kPAUSE 155 #define kPAUSE 155
#define BOT kPAUSE
#define kLEFT 8 /* 157 */ #define kLEFT 8 /* 157 */
#define kRIGHT 21 /* 158 */ #define kRIGHT 21 /* 158 */