HomeFreeBSD

ums(4): fix incorrect mouse button reporting via evdev

Description

ums(4): fix incorrect mouse button reporting via evdev

when ums driver receives non-mouse HID report. This results in
unexpected button release event. Reuse existing sysmouse logic to
keep button pressed.

Reviewed by: imp, wulf
MFC after: 1 week
Differential revision: https://reviews.freebsd.org/D45838

(cherry picked from commit d6888e211b07be79dd8de3145ac41b365f482ae8)

Details

Provenance
nsonack_outlook.comAuthored on Jul 2 2024, 7:27 PM
wulfCommitted on Sep 19 2024, 9:44 PM
Reviewer
imp
Differential Revision
D45838: EVDEV: fix incorrect mouse button reporting
Parents
rG2abd2ad64899: bhyve: improve input validation in pci_xhci
Branches
Unknown
Tags
Unknown