Searched hist:"5148 fa52a12fa1b97c730b2fe321f2aad7ea041c" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/samples/uhid/ |
H A D | Makefile | 5148fa52a12fa1b97c730b2fe321f2aad7ea041c Sun Jun 10 08:16:27 CDT 2012 David Herrmann <dh.herrmann@googlemail.com> 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>
|
H A D | uhid-example.c | 5148fa52a12fa1b97c730b2fe321f2aad7ea041c Sun Jun 10 08:16:27 CDT 2012 David Herrmann <dh.herrmann@googlemail.com> 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>
|