HID: uhid: add example program
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 10 Jun 2012 13:16:27 +0000 (15:16 +0200)
committerColin Cross <ccross@android.com>
Thu, 16 Aug 2012 19:44:29 +0000 (12:44 -0700)
commit9634f8109f89f26383c26c4b3781f5dd8599d365
tree016e61062ae330070d1c21d2f54530db6ce5a724
parentbd76675614d475cc9cf91eaa9ed0d65831465d08
HID: uhid: add example program

This adds an example user-space program that emulates a 3 button mouse
with wheel. It detects keyboard presses and moves the mouse accordingly.

It register a fake HID device to feed the raw HID reports into the kernel.
In this example, you could use uinput to get the same result, but this
shows how to get the same behavior with uhid so you don't need HID parsers
in user-space.

Signed-off-by: David Herrmann <dh.herrmann@googlemail.com>
Signed-off-by: Jiri Kosina <jkosina@suse.cz>
samples/uhid/Makefile [new file with mode: 0644]
samples/uhid/uhid-example.c [new file with mode: 0644]