alcedo/kernel/arch/i386/scancodes.nim

14 lines
399 B
Nim
Raw Normal View History

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