[Webkit-unassigned] [Bug 266293] New: Gamepad: Map DualShock/DualSense Trackpad Button
bugzilla-daemon at webkit.org
bugzilla-daemon at webkit.org
Tue Dec 12 10:29:34 PST 2023
https://bugs.webkit.org/show_bug.cgi?id=266293
Bug ID: 266293
Summary: Gamepad: Map DualShock/DualSense Trackpad Button
Product: WebKit
Version: Safari Technology Preview
Hardware: All
OS: All
Status: NEW
Severity: Normal
Priority: P2
Component: WebCore Misc.
Assignee: webkit-unassigned at lists.webkit.org
Reporter: jameshoward at mac.com
On Sony gamepads, the trackpad is itself a clickable button. This is independent of the multitouch behavior of the trackpad[^1]. Chromium maps this trackpad click as button 17 in the standard gamepad mapping.
In WebKit, the trackpad button is unmapped[^2].
I notice that the Gamepad spec[^3] now says that user agents can choose to map exactly the 16 buttons regardless of what the controller supports as a fingerprinting mitigation, so maybe it makes sense to get button 17 added to the spec as part of the standard mapping, or else always make the buttons array be 17 elements long for all controller types.
Steps to reproduce:
1. Connect a Sony DualShock 4 or Sony DualSense controller via USB or BT.
2. Navigate to https://gamepad-tester.com
3. Press any button on controller to get page to recognize it.
4. Press the trackpad button.
Results:
Safari Technology Preview 184, macOS 14.1.1: Nothing happens.
Chrome 120.0.6099.71, macOS 14.1.1: Button 17 value toggles between 0.0 and 1.0 when pressed.
Why do we want this:
Some games make use of the trackpad button.
[^1]: https://knyg.github.io/gamepad/extensions.html#gamepadtouch-interface
[^2]: https://github.com/WebKit/WebKit/blob/ed54b0254b83b2ea15aa23354e1e0c91f1d8dfaf/Source/WebCore/platform/gamepad/cocoa/GameControllerGamepad.mm#L57
[^3]: https://w3c.github.io/gamepad/#fingerprinting-mitigation
--
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.webkit.org/pipermail/webkit-unassigned/attachments/20231212/22a97c7e/attachment.htm>
More information about the webkit-unassigned
mailing list