input-linux: better capability checks, merge input_linux_event_{mouse, keyboard}
commit2e6a64cb8d7506ad27d3b6c8000bc8d773936932
authorGerd Hoffmann <kraxel@redhat.com>
Thu, 16 Jun 2016 09:03:20 +0000 (16 11:03 +0200)
committerGerd Hoffmann <kraxel@redhat.com>
Tue, 12 Jul 2016 07:25:50 +0000 (12 09:25 +0200)
treefe0f65ac153af12a53f119b19ae725e28da8f26e
parent2330e9e7cca29346df74b21105a587d9478ff296
input-linux: better capability checks, merge input_linux_event_{mouse, keyboard}

Improve capability checks (count keys and buttons), store results.

Merge the input_linux_event_mouse and input_linux_event_keyboard
functions into one, dispatch into input_linux_handle_mouse and
input_linux_handle_keyboard depending on device capabilities.

Allow calling both handle functions, so we can handle mice which
also send key events, by routing those key events to the keyboard.

Signed-off-by: Gerd Hoffmann <kraxel@redhat.com>
Message-id: 1466067800-25434-4-git-send-email-kraxel@redhat.com
ui/input-linux.c