~sforshee/udev/keymap-continue-read-after-invalid-scancode

Viewing all changes in revision 3814.

  • Committer: Seth Forshee
  • Date: 2011-03-23 16:51:07 UTC
  • Revision ID: seth.forshee@canonical.com-20110323165107-54an31dua72w443j
keymap: continue reading keymap after invalid scancodes

Reading of keymaps is aborted when EINVAL is returned from
EVIOCGETKEYCODE. Scan codes are not always continuous ranges of values
starting at 0, so this can result in not getting the full keymap for a
device. Instead, continue processing if EINVAL is returned.

expand all expand all

Show diffs side-by-side

added added

removed removed

Lines of Context: