Keyboard: Actually reset everything in keyboard_init() and call it in pc_reset_hard_init() as well.

This commit is contained in:
OBattler
2025-03-27 19:10:20 +01:00
parent 7ee19c0a55
commit 93f3e9f339

View File

@@ -113,7 +113,17 @@ static scconvtbl scconv55_8a[18 + 1] =
void
keyboard_init(void)
{
num_lock = 0;
caps_lock = 0;
scroll_lock = 0;
shift = 0;
memset(recv_key, 0x00, sizeof(recv_key));
memset(recv_key_ui, 0x00, sizeof(recv_key));
memset(oldkey, 0x00, sizeof(recv_key));
#if 0
memset(key_delay, 0x00, sizeof(recv_key));
#endif
keyboard_scan = 1;
scan_table = NULL;