From 69c012fbbefe5f37703585d22c4be4626721ef02 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jo=C3=A3o=20Paulo=20Rechi=20Vita?= Date: Tue, 10 Jul 2012 16:16:59 -0300 Subject: [PATCH] hog: Handle output events This patch prints the output events coming from the HID host for debug purposes. --- profiles/input/hog_device.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/profiles/input/hog_device.c b/profiles/input/hog_device.c index dbff0c5ed..5bd713a1d 100644 --- a/profiles/input/hog_device.c +++ b/profiles/input/hog_device.c @@ -412,6 +412,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; -- 2.47.3