Fixed CTRL-ALT-DEL menu option broken by recent keyboard changes.

This commit is contained in:
SarahW 2019-05-01 21:38:28 +01:00
commit 49f2f34249
3 changed files with 26 additions and 6 deletions

View file

@ -463,3 +463,22 @@ void keyboard_process()
}
}
}
void keyboard_send_scancode(int code, int is_break)
{
scancode *scancodes = (AT) ? at_scancodes : scancode_xt;
int d = 0;
if (!keyboard_scan) return;
if (!is_break)
{
while (scancodes[code].scancodes_make[d] != 0)
keyboard_send(scancodes[code].scancodes_make[d++]);
}
else
{
while (scancodes[code].scancodes_break[d] != 0)
keyboard_send(scancodes[code].scancodes_break[d++]);
}
}