From 774dedc4d6d1e5f47db228091ba350b60d337efb Mon Sep 17 00:00:00 2001 From: hidnplayr Date: Thu, 19 Dec 2013 21:15:51 +0000 Subject: [PATCH] Console: support for numpad keys '/', '*' and 'Enter'. git-svn-id: svn://kolibrios.org@4384 a494cfbc-eb01-0410-851d-a64ba20cac60 --- .../develop/libraries/console/console.asm | 21 +++++++++++++++++++ 1 file changed, 21 insertions(+) diff --git a/programs/develop/libraries/console/console.asm b/programs/develop/libraries/console/console.asm index 3e91f1966f..4d98ac5c30 100644 --- a/programs/develop/libraries/console/console.asm +++ b/programs/develop/libraries/console/console.asm @@ -1917,12 +1917,33 @@ con.key: mov ecx, con.extended_alt test al, 0x30 jnz .xlat + mov ecx, con.extended_shift test al, 3 jnz .xlat + mov ecx, con.extended_ctrl test al, 0xC jnz .xlat + + cmp dl, 28 + jne @f + shl dx, 8 + mov dl, 13 + jmp .gotcode +@@: + cmp dl, 53 + jne @f + shl dx, 8 + mov dl, '/' + jmp .gotcode +@@: + cmp dl, 55 + jne @f + shl dx, 8 + mov dl, '*' + jmp .gotcode +@@: xchg dl, dh cmp dh, 0x57 jz @f