summaryrefslogtreecommitdiff
path: root/doc/internal/scantabs.txt
blob: 208da08f4705e8d6390570d74f91daac0a1f1ae9 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
scan table file header:
  uint32_t: number of scan tables
  0x10 aligned scan table records

scan table record:
  uint32_t offset in file of table data / 0x200
  uint8_t: length of prefix
  uint8_t's: prefix

table data (0x200 aligned):
  first key down table then key up table
  uint8_t's:
    0x00: bad scancode
    0x01: prefix (go to table)
    0x02: wrong polarity (go to other up or down)
    0x03: good scancode, no keycode
    other: keycode