Added scancodes for set one up to 0x0F.
This commit is contained in:
parent
cf1d4e59e0
commit
92b1cffde6
@ -3,7 +3,7 @@ import io
|
||||
const keyboardAddress = 0x60
|
||||
|
||||
type
|
||||
KeypressEvent = tuple
|
||||
KeypressEvent* = tuple
|
||||
character: char
|
||||
pressed: bool
|
||||
|
||||
|
13
kernel/arch/i386/scancodes.nim
Normal file
13
kernel/arch/i386/scancodes.nim
Normal file
@ -0,0 +1,13 @@
|
||||
import tables
|
||||
|
||||
type
|
||||
KeypressEvent* = tuple
|
||||
character: char
|
||||
pressed: bool
|
||||
|
||||
const SetOne* = {
|
||||
0x01:('\x1B', true), 0x02:('1', true), 0x03:('2', true), 0x04:('3', true),
|
||||
0x05:('4', true), 0x06:('5', true), 0x07:('6', true), 0x08:('7', true),
|
||||
0x09:('8', true), 0x0A:('9', true), 0x0B:('0', true), 0x0C:('-', true),
|
||||
0x0D:('=', true), 0x0E:('\x08', true), 0x0F:('\x09', true)
|
||||
}.newTable
|
Loading…
Reference in New Issue
Block a user