Added scancodes for set one up to 0x0F.

This commit is contained in:
neviyn 2017-10-31 02:27:45 +00:00
parent cf1d4e59e0
commit 92b1cffde6
2 changed files with 14 additions and 1 deletions

View File

@ -3,7 +3,7 @@ import io
const keyboardAddress = 0x60 const keyboardAddress = 0x60
type type
KeypressEvent = tuple KeypressEvent* = tuple
character: char character: char
pressed: bool pressed: bool

View 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