aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-04-24 14:33:29 -0300
committerJoão Paulo Rechi Vita <jprvita@openbossa.org>2012-06-21 18:00:18 -0300
commit7180fe94b4774447c5873798e5b91978be34cdb6 (patch)
treebef1304ed489e90dbcb3d8fe183d53bbcf6d14ba
parentfb020e7bf59c647fc70248bd042913fb1b448c3c (diff)
downloadbluez-7180fe94b4774447c5873798e5b91978be34cdb6.tar.gz
bluez-7180fe94b4774447c5873798e5b91978be34cdb6.tar.xz
bluez-7180fe94b4774447c5873798e5b91978be34cdb6.zip
hog: Handle output events
This patch prints the output events coming from the HID host for debug purposes.
-rw-r--r--input/hog_device.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/input/hog_device.c b/input/hog_device.c
index 50394e72..374f9fed 100644
--- a/input/hog_device.c
+++ b/input/hog_device.c
@@ -415,6 +415,11 @@ static gboolean uhid_event_cb(GIOChannel *io, GIOCondition cond,
case UHID_OUTPUT:
forward_report(hogdev, &ev);
break;
+ case UHID_OUTPUT_EV:
+ DBG("uHID output event: type %d code %d value %d",
+ ev.u.output_ev.type, ev.u.output_ev.code,
+ ev.u.output_ev.value);
+ break;
default:
warn("unexpected uHID event");
break;