Skip to content

Commit

Permalink
bufix: (fixed #1171) Keyboard reset would not restore keys
Browse files Browse the repository at this point in the history
After a keyboard reset was triggered, the keyboard was not restored.
  • Loading branch information
midwan committed Nov 14, 2023
1 parent 51fb8b3 commit ae4e0ba
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/cia.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -762,8 +762,7 @@ static void resetwarning_check(void)
write_log(_T("KB: reset warning forced reset. Phase=%d\n"), resetwarning_phase);
resetwarning_phase = -1;
kblostsynccnt = 0;
send_internalevent (INTERNALEVENT_KBRESET);
uae_reset (0, 1);
inputdevice_do_kb_reset();
}
}
if (resetwarning_phase == 1) {
Expand All @@ -785,8 +784,7 @@ static void resetwarning_check(void)
write_log(_T("KB: reset warning end by software. reset.\n"));
resetwarning_phase = -1;
kblostsynccnt = 0;
send_internalevent (INTERNALEVENT_KBRESET);
uae_reset (0, 1);
inputdevice_do_kb_reset();
}
}
}
Expand Down

0 comments on commit ae4e0ba

Please sign in to comment.