Add bus_type param to GetGamepadStandardMappingFunction
The Standard Gamepad spec lays out a standard configuration for gamepad buttons and axes. The browser attempts to remap the buttons and axes reported by connected devices to more closely match the standard. In most cases, a suitable mapping function can be chosen from the vendor and product IDs reported by the device. In some cases this is not sufficient; for instance, some devices are supported over both USB and Bluetooth and require different mapping functions in either case. To help select a mapping function in these cases, a |bus_type| parameter is added to GetGamepadStandardMappingFunction to specify whether the device is connected over USB or Bluetooth. BUG=749295 Change-Id: I566e06f5d34eeac269a0a70e912f74a64ccd19f5 Reviewed-on: https://chromium-review.googlesource.com/887231Reviewed-by:Brandon Jones <bajones@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#532583}
Showing
Please register or sign in to comment