aboutsummaryrefslogtreecommitdiff
path: root/mirai/drivers/keyboard/scancode.zig
blob: a76aafaba342f43ea096978ad9e93334a09befc6 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
//! Keyboard scancode tables

pub const normal: [128]u8 = .{
    0,    27,  '1', '2',  '3',  '4', '5',    '6',
    '7',  '8', '9', '0',  '-',  '=', '\x08', '\t',
    'q',  'w', 'e', 'r',  't',  'y', 'u',    'i',
    'o',  'p', '[', ']',  '\n', 0,   'a',    's',
    'd',  'f', 'g', 'h',  'j',  'k', 'l',    ';',
    '\'', '`', 0,   '\\', 'z',  'x', 'c',    'v',
    'b',  'n', 'm', ',',  '.',  '/', 0,      '*',
    0,    ' ', 0,   0,    0,    0,   0,      0,
    0,    0,   0,   0,    0,    0,   0,      '7',
    '8',  '9', '-', '4',  '5',  '6', '+',    '1',
    '2',  '3', '0', '.',  0,    0,   0,      0,
    0,    0,   0,   0,    0,    0,   0,      0,
    0,    0,   0,   0,    0,    0,   0,      0,
    0,    0,   0,   0,    0,    0,   0,      0,
    0,    0,   0,   0,    0,    0,   0,      0,
    0,    0,   0,   0,    0,    0,   0,      0,
};

pub const shifted: [128]u8 = .{
    0,   27,  '!', '@', '#',  '$', '%',    '^',
    '&', '*', '(', ')', '_',  '+', '\x08', '\t',
    'Q', 'W', 'E', 'R', 'T',  'Y', 'U',    'I',
    'O', 'P', '{', '}', '\n', 0,   'A',    'S',
    'D', 'F', 'G', 'H', 'J',  'K', 'L',    ':',
    '"', '~', 0,   '|', 'Z',  'X', 'C',    'V',
    'B', 'N', 'M', '<', '>',  '?', 0,      '*',
    0,   ' ', 0,   0,   0,    0,   0,      0,
    0,   0,   0,   0,   0,    0,   0,      '7',
    '8', '9', '-', '4', '5',  '6', '+',    '1',
    '2', '3', '0', '.', 0,    0,   0,      0,
    0,   0,   0,   0,   0,    0,   0,      0,
    0,   0,   0,   0,   0,    0,   0,      0,
    0,   0,   0,   0,   0,    0,   0,      0,
    0,   0,   0,   0,   0,    0,   0,      0,
    0,   0,   0,   0,   0,    0,   0,      0,
};