From: Duje Mihanović Date: Wed, 15 Jun 2022 19:04:08 +0000 (+0200) Subject: Add number keys to PS/2 driver X-Git-Url: http://git.dujemihanovic.xyz/%7B%7B%20%24.Site.BaseURL%20%7D%7Dposts/index.xml?a=commitdiff_plain;h=refs%2Fremotes%2Forigin%2Fps2-driver;p=nameless-os.git Add number keys to PS/2 driver --- diff --git a/include/arch/x86/input/ps2.h b/include/arch/x86/input/ps2.h index 8b90a73..55858bf 100644 --- a/include/arch/x86/input/ps2.h +++ b/include/arch/x86/input/ps2.h @@ -81,6 +81,18 @@ static const char scancodes[] = { [0x31] = 'n', [0x3a] = 'm', + /* numbers */ + [0x45] = '0', + [0x16] = '1', + [0x1e] = '2', + [0x26] = '3', + [0x25] = '4', + [0x2e] = '5', + [0x36] = '6', + [0x3d] = '7', + [0x3e] = '8', + [0x46] = '9', + /* special */ [0x29] = ' ' };