• Matt Reynolds's avatar
    Block known non-gamepad HID devices in gamepad enumeration · 96bd76a7
    Matt Reynolds authored
    The HID gamepad backend uses heuristics based on the button and
    axis usages present in the HID report descriptor to identify
    devices that may be gamepads. Misidentifying a non-gamepad as a
    gamepad is problematic because Chrome only supports a maximum of
    four connected gamepads. When a non-gamepad occupies one of these
    slots, it prevents a real gamepad from using that slot.
    
    This CL adds a blocklist containing device IDs for devices known
    to be mis-identified by the HID gamepad heuristics. These devices
    will be skipped during enumeration.
    
    BUG=972260
    
    Change-Id: I7279e032033b47902ea9fc046c0ab12a4370d376
    Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1652508Reviewed-by: default avatarOvidio de Jesús Ruiz-Henríquez <odejesush@chromium.org>
    Commit-Queue: Matt Reynolds <mattreynolds@chromium.org>
    Cr-Commit-Position: refs/heads/master@{#668564}
    96bd76a7
gamepad_blocklist.h 786 Bytes