projects
/
nameless-os.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
63b1983
)
Add number keys to PS/2 driver
ps2-driver
origin/ps2-driver
author
Duje Mihanović
<duje.mihanovic@skole.hr>
Wed, 15 Jun 2022 19:04:08 +0000
(21:04 +0200)
committer
Duje Mihanović
<duje.mihanovic@skole.hr>
Wed, 22 Jun 2022 16:05:28 +0000
(18:05 +0200)
include/arch/x86/input/ps2.h
patch
|
blob
|
history
diff --git
a/include/arch/x86/input/ps2.h
b/include/arch/x86/input/ps2.h
index 8b90a73e5de11b96a4c000bfad5ca6128665984c..55858bfd2ff6413e73dbc0f008ac1dd0b250c47e 100644
(file)
--- 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] = ' '
};