irq = 0;
if (gayle_emulation_enabled) {
- if (((gayle_int & 0x80) || gayle_a4k_int) && get_ide(0)->drive->intrq) {
- //get_ide(0)->drive->intrq = 0;
+ if (((gayle_int & 0x80) || gayle_a4k_int) && (get_ide(0)->drive[0].intrq || get_ide(0)->drive[1].intrq)) {
+ //get_ide(0)->drive[0].intrq = 0;
gayleirq = 1;
m68k_end_timeslice();
}
}
if (!kb_hook_enabled && c_type) {
- if (c == cfg->mouse_toggle_key) {
+ if (c && c == cfg->mouse_toggle_key) {
mouse_hook_enabled ^= 1;
printf("Mouse hook %s.\n", mouse_hook_enabled ? "enabled" : "disabled");
mouse_dx = mouse_dy = mouse_buttons = 0;