commit | c1ae7c6ced32ccbed12548962eeda33d34d92e50 | [log] [tgz] |
---|---|---|
author | Jacob DeWitt <jacde@chromium.org> | Thu May 23 20:02:19 2019 |
committer | Commit Bot <commit-bot@chromium.org> | Thu May 23 20:02:19 2019 |
tree | e0e3d35f47bb3870892f6d21469e3c010f5647d6 | |
parent | 43a3d4a05749d3222cda6ef325b8101a80dd867b [diff] |
Make WebXR Gamepad y axis values consistent. According to the Gamepad spec, y axis values should have -1.0 be up and 1.0 be down. WMR, OpenVR, and Oculus device APIs have 1.0 correspond to up, so we have to flip the signs for the y axis values that come from those platforms. The Oculus gamepad builder code already flips the sign for the y axis, which is why it's not included in this CL. Note that this will also affect the WebVR gamepads in the same way. Changes to input-selection.html are to help testing and debugging WebXR gamepads. Now the page shows tables for button and axis values which are updated in real-time. Bug: 965522, 965527 Change-Id: I08a1ecf4d5f90f41edcf5574fc9fd96e043482a6 Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/1626393 Reviewed-by: Bill Orr <billorr@chromium.org> Reviewed-by: Klaus Weidner <klausw@chromium.org> Reviewed-by: Alexander Cooper <alcooper@chromium.org> Commit-Queue: Jacob DeWitt <jacde@chromium.org> Cr-Commit-Position: refs/heads/master@{#662772}
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 .