chiark / gitweb /
keymap: More robust state machine
authorMartin Pitt <martin.pitt@ubuntu.com>
Sun, 16 Jan 2011 20:10:03 +0000 (21:10 +0100)
committerMartin Pitt <martin.pitt@ubuntu.com>
Sun, 16 Jan 2011 20:10:03 +0000 (21:10 +0100)
commit90f182c3d69a4451bb1ea6f79d8d7fe4895cdf89
tree1b636dc75d7db14658be19e78bc14757b3fd9e94
parent45019c0e88d76c9568f581582cdb985bb9393354
keymap: More robust state machine

Some drivers, like thinkpad_acpi, do not send a scan code at all (for known
keys), and some send the key code first, then the scan code. Implement a better
state machine which acceps them in any order and wait until a SYN event. If the
driver does not send SYN events, keymap will also handle this and print out
that fact.

Thanks to Seth Forshee for pointing out how this really works!

https://launchpad.net/bugs/702407
extras/keymap/keymap.c