Bug 273981 - Gamepad: Add vendorId, productId, name attributes
Summary: Gamepad: Add vendorId, productId, name attributes
Status: NEW
Alias: None
Product: WebKit
Classification: Unclassified
Component: WebCore Misc. (show other bugs)
Version: Other
Hardware: Unspecified Unspecified
: P2 Normal
Assignee: Nobody
URL:
Keywords: InRadar
Depends on:
Blocks:
 
Reported: 2024-05-09 16:58 PDT by Marcos Caceres
Modified: 2024-05-16 16:59 PDT (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marcos Caceres 2024-05-09 16:58:50 PDT
Gamepad identification relies on assumptions about browser-specific behaviors that are not defined as part of the spec. Gamepad API only exposes one device identifier for gamepads, the Gamepad.id string attribute. The content of this attribute is explicitly left unspecified. Each browser engine uses a different naming scheme.

Adding Add vendorId, productId, along with the name attribute would bring some consistency. 

Spec change:
https://github.com/w3c/gamepad/issues/199
Comment 1 Radar WebKit Bug Importer 2024-05-16 16:59:16 PDT
<rdar://problem/128236455>