commit | a077c7a863a283118f746e7ac1254f163b167cac | [log] [tgz] |
---|---|---|
author | Matt Reynolds <mattreynolds@chromium.org> | Mon Jan 29 21:00:04 2018 |
committer | Commit Bot <commit-bot@chromium.org> | Mon Jan 29 21:00:04 2018 |
tree | 770bce6aaee5ac55bef964ac97200a4b1b7c5c35 | |
parent | 27008b7424e316fe5c7b1476f107c805e53aa909 [diff] |
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/887231 Reviewed-by: Brandon Jones <bajones@chromium.org> Commit-Queue: Matt Reynolds <mattreynolds@chromium.org> Cr-Commit-Position: refs/heads/master@{#532583}
Chromium is an open-source browser project that aims to build a safer, faster, and more stable way for all users to experience the web.
The project's web site is https://www.chromium.org.
Documentation in the source is rooted in docs/README.md.
Learn how to Get Around the Chromium Source Code Directory Structure .