hid-tools: how to reply to output report?
Silvan Jegen
me at sillymon.ch
Sat Apr 9 19:33:02 UTC 2022
Filipe Laíns <lains at riseup.net> wrote:
> On Sat, 2022-04-09 at 16:19 +0200, Silvan Jegen wrote:
> > [ ...snip... ]
> >
> > Does somebody know how can I send the expected reply to the output report
> > from my uhid device back to the hid-nintendo driver?
>
> Hi Silvan,
>
> You probably want set the output_report[0] callback to handle the report the
> driver sent, and will probably need to use call_input_event[1] to send data back
> to the driver there.
I have implemented a "output_report" callback but I wasn't sure how
to send back the reply that the driver expects. I will take a look at
"call_input_event" and see if I can figure it out.
Many thanks for the help!
Cheers,
Silvan
>
> [0] https://gitlab.freedesktop.org/libevdev/hid-tools/-/blob/master/hidtools/uhid.py#L488
> [1] https://gitlab.freedesktop.org/libevdev/hid-tools/-/blob/master/hidtools/uhid.py#L307
>
> Cheers,
> Filipe Laíns
More information about the Input-tools
mailing list