From dc5d3b9754168ec7b5c57f5affd0863cd9eb5bce Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?David=20Hrdli=C4=8Dka?= Date: Mon, 28 Dec 2020 14:06:16 +0100 Subject: [PATCH] Send actual delete on Ctrl+Alt+Del Fixes NT v1.196 --- src/pc.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/pc.c b/src/pc.c index cec907027..ef1005091 100644 --- a/src/pc.c +++ b/src/pc.c @@ -648,14 +648,14 @@ pc_init_modules(void) void -pc_send_ca(uint8_t sc) +pc_send_ca(uint16_t sc) { - keyboard_input(1, 29); /* Ctrl key pressed */ - keyboard_input(1, 56); /* Alt key pressed */ + keyboard_input(1, 0x1D); /* Ctrl key pressed */ + keyboard_input(1, 0x38); /* Alt key pressed */ keyboard_input(1, sc); keyboard_input(0, sc); - keyboard_input(0, 56); /* Alt key released */ - keyboard_input(0, 29); /* Ctrl key released */ + keyboard_input(0, 0x38); /* Alt key released */ + keyboard_input(0, 0x1D); /* Ctrl key released */ } @@ -663,7 +663,7 @@ pc_send_ca(uint8_t sc) void pc_send_cad(void) { - pc_send_ca(83); + pc_send_ca(0xE053); }