HID: uhid: add example program
authorDavid Herrmann <dh.herrmann@googlemail.com>
Sun, 10 Jun 2012 13:16:27 +0000 (15:16 +0200)
committerJiri Kosina <jkosina@suse.cz>
Mon, 18 Jun 2012 11:42:03 +0000 (13:42 +0200)
commit5148fa52a12fa1b97c730b2fe321f2aad7ea041c
tree4d0db495f3c5b34dad9cb0dd47043c77bc48e617
parentd99b8bad7663c8b920b366877a27b4176dece062
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]