Bug 1824821 [wpt PR 39227] - Add multitouch support to Gamepad API, a=testonly
commitf1607f834bb83c47d78176a3554ae76b4dd4238f
authorBradley Needham <bradley.needham@sony.com>
Thu, 13 Apr 2023 04:31:36 +0000 (13 04:31 +0000)
committermoz-wptsync-bot <wptsync@mozilla.com>
Fri, 14 Apr 2023 11:15:50 +0000 (14 11:15 +0000)
tree1f586fe40a33c77d442e6a5fcecf20a4183d4dfc
parent2fe6f3b2554d814c80777da302fa6332a7b06ba5
Bug 1824821 [wpt PR 39227] - Add multitouch support to Gamepad API, a=testonly

Automatic update from web-platform-tests
Add multitouch support to Gamepad API

Changes and updates have been made to Fernando Attia's patchset 1612050.
The implementation has been changed to support the most recent changes
to the spec https://github.com/w3c/gamepad/pull/168.

Support for DualShock4 controller is part of patch.
This commit is a squash of several changes the last major one is:
Normalize touchIds per Gamepad

The same hardware may provide input to Gamepads in different tabs.
This commit normalizes touchIds coming from the hardware to a single
incremented value starting at zero per Gamepad instance.

Extend the Gamepad API to support multitouch surfaces (touchpads).
Intent to prototype :
https://groups.google.com/a/chromium.org/g/blink-dev/c/4q_k23rPMos

Chrome status entry:
https://www.chromestatus.com/feature/4782975812108288

R=mattreynolds@chromium.org

Change-Id: I0fa2006c3fc36a908b316cc29b97d295aac798ca

Update idl to match current spec draft

Normalize touchid to 32bit value.

Update web tests.

Bug: 1143942
Change-Id: I80ed31ebf0c6a347906b91b3c178099d1e332c53
Reviewed-on: https://chromium-review.googlesource.com/c/chromium/src/+/3866373
Reviewed-by: Matt Reynolds <mattreynolds@chromium.org>
Commit-Queue: Matt Reynolds <mattreynolds@chromium.org>
Cr-Commit-Position: refs/heads/main@{#1126297}

--

wpt-commits: c03609e36f4e7d3ad8888b7532650836fc1bc7ef
wpt-pr: 39227
testing/web-platform/tests/resources/chromium/webxr-test.js