[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <62b486c3-6cbe-495e-7843-1cffb010a685@gmail.com>
Date: Wed, 4 Nov 2020 09:13:50 -0800
From: Chris Ye <linzhao.ye@...il.com>
To: Benjamin Tissoires <benjamin.tissoires@...hat.com>
Cc: Chris Ye <lzye@...gle.com>,
Dmitry Torokhov <dmitry.torokhov@...il.com>,
Jiri Kosina <jikos@...nel.org>,
lkml <linux-kernel@...r.kernel.org>, trivial@...nel.org,
"open list:HID CORE LAYER" <linux-input@...r.kernel.org>
Subject: Re: [PATCH v2] Input: Fix the HID usage of DPAD input event
generation.
Hi Benjamin,
We are using hid driver to inject hid report for D-Pad and Hat
switch events, like:
[0x00, 0x00, 0x00, 0x00, 0x01, 0x80, 0x00, 0x00, 0x00, 0x00,
0x00, 0x00],
Check the HID format dump from kernel, this will send a 0x1 on HID usage
GenericDesktop.HatSwitch.
Do you need me to help write the gamevice tests? I've not observed any
regression from my side, as this patch is very specific to usage
D-PadUp/Down/Left/Right.
Thanks!
Chris
On 11/3/20 9:36 AM, Benjamin Tissoires wrote:
> I can emulate events for X,Y,
> buttons,... but I am not sure how the gamepad sends the events for the
> Hat switch and the D-Pad together.
Powered by blists - more mailing lists