diff --git a/index.html b/index.html index 4d4318a..bc43e5a 100644 --- a/index.html +++ b/index.html @@ -900,6 +900,7 @@

readonly attribute boolean pressed; readonly attribute boolean touched; readonly attribute double value; + readonly attribute GamepadButtonType type; };

@@ -952,6 +953,17 @@

.. 1.0] + + + [[\type]] + + + `undefined` + + + The button type of the controller. + +
@@ -1018,6 +1030,13 @@

+
+ type attribute +
+
+ An enumeration, {{GamepadButtonType}}, that indicates which button types the controller + is being held in. +

@@ -1944,6 +1963,109 @@

Visual representation of a [=Standard Gamepad=] layout. +
+

+ Extended Mapping +

+

+ This section introduces an extended gamepad button mapping beyond the Standard Gamepad layout. + These additional buttons are commonly found on certain gamepad models. + The following table defines the extended buttons used by some gamepad models in the following diagrams. + It’s important to note that this list is not exhaustive, and user agents may utilize different + or additional buttons for these or other gamepad models. + Consequently, the number of buttons on the Gamepad is not limited to the standard mapping of 17 buttons. +

+

+ To accommodate extended gamepads, we have incorporated an "extended" mapping enumeration + into the GamepadMappingType. Additionally, we have defined an enumeration for the various + button types in the table, termed "GamepadButtonType", and have expanded the "GamepadButton" + interface to encompass this new button type enumeration. +

+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
ButtonsGamepad Models
trackpad/touchpadSony DualSense, DualShock 4
share/captureXbox Wireless Controller Model 1914
+ Nintendo Switch controllers
+ Stadia controller
+
voice assistantGoogle Stadia Controller
+ Amazon Luna Controller
+
homeNvidia Shield Gamepad
squeeze_leftXbox Elite Wireless Controller
+ PlayStation DualSense Edge
squeeze_left_lowerXbox Elite Wireless Controller
squeeze_rightXbox Elite Wireless Controller
+ PlayStation DualSense Edge
squeeze_right_lowerXbox Elite Wireless Controller
+
+

+ GamepadButtonType Enum +

+

+ This enum defines the set of possible button types. +

+
+            enum GamepadButtonType {
+              "unknown",
+              "trackpad",
+              "share"
+            };
+          
+
+
+ unknown +
+
+ This indicates button type is unknown or not applicable. +
+
+ trackpad +
+
+ This button is being assigned to trackpad button. +
+
+ share +
+
+ This button is being assigned to share button. +
+
+
+

Fingerprinting mitigation