From a92584457b537cd8bd63a9b2ced1fc345185e521 Mon Sep 17 00:00:00 2001
From: Sun Shin
@@ -1018,6 +1031,13 @@
+ This section introduces an extended gamepad button mapping beyond the [=Standard Gamepad=] mapping.
+ These additional buttons are commonly found on certain gamepad models.
+ Some examples of these additional buttons include trackpads or touchpads, share or capture buttons,
+ voice assistant buttons, home buttons, and various squeeze buttons.
+ 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 additional gamepad buttons, we have defined an enumeration for the various button types termed
+ {{GamepadButtonType}}, and have expanded the {{GamepadButton}} interface to encompass this new
+ {{GamepadButtonType}} enumeration.
+
+ This enum defines the set of possible button types.
+
-
+
+
readonly attribute boolean pressed;
readonly attribute boolean touched;
readonly attribute double value;
+ readonly attribute GamepadButtonType type;
};
Visual representation of a [=Standard Gamepad=] layout.
+
+ Additional gamepad buttons
+
+
+ GamepadButtonType Enum
+
+
+ enum GamepadButtonType {
+ "standard",
+ "non-standard",
+ "trackpad",
+ };
+
+
+
+
Fingerprinting mitigation
From 9f8070d35d767d5778d7ba301a05cf775ad57e8e Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?=
enum GamepadButtonType {
- "standard",
"non-standard",
+ "standard",
"trackpad",
};
From ed4578797de9cbf4545aec45b39ee4ca37925080 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Marcos=20C=C3=A1ceres?= This section introduces an extended gamepad button mapping beyond the [=Standard Gamepad=] mapping.