summaryrefslogtreecommitdiff
path: root/doc/internal
diff options
context:
space:
mode:
authorBenji Dial <benji6283@gmail.com>2021-01-24 12:00:11 -0500
committerBenji Dial <benji6283@gmail.com>2021-01-24 12:00:11 -0500
commitbce944d1498eaa3b6940ee234c863b3548a66b37 (patch)
treeea40c087ab4f0f236aee8d158cf68550f5209f72 /doc/internal
parentca731aa747214919df7b3dfe3478dbe787ce5b68 (diff)
downloadportland-os-bce944d1498eaa3b6940ee234c863b3548a66b37.tar.gz
graphics!
Diffstat (limited to 'doc/internal')
-rw-r--r--doc/internal/scantabs.txt17
1 files changed, 17 insertions, 0 deletions
diff --git a/doc/internal/scantabs.txt b/doc/internal/scantabs.txt
new file mode 100644
index 0000000..208da08
--- /dev/null
+++ b/doc/internal/scantabs.txt
@@ -0,0 +1,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