Fixed CTRL-ALT-DEL menu option broken by recent keyboard changes.
This commit is contained in:
parent
66b0b9c926
commit
49f2f34249
3 changed files with 26 additions and 6 deletions
|
|
@ -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++]);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue