lkml.org 
[lkml]   [2020]   [Nov]   [4]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
SubjectRe: [PATCH v2] Input: Fix the HID usage of DPAD input event generation.
From
Date
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.

\
 
 \ /
  Last update: 2020-11-04 18:14    [W:0.197 / U:0.040 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site