HID: uhid: add example program
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 10 Jun 2012 13:16:27 +0000 (15:16 +0200)
committerVarun Wadekar <vwadekar@nvidia.com>
Tue, 18 Sep 2012 08:23:15 +0000 (13:23 +0530)
commit50734fe3fefff878c54b99ee0bfcb2fa5c78effa
tree57ec865c4284b29f6e936e81c3477f7655cdbbe0
parent063ceb9e84ba9bc34022ef06cc2e77dd58fd5a00
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]