diff --git a/index.html b/index.html index b488a7f..5aa74f4 100644 --- a/index.html +++ b/index.html @@ -1182,9 +1182,7 @@

[Exposed=Window, SecureContext] dictionary GamepadTouch { unsigned long touchId; - octet surfaceId; Float32Array position; - Uint32Array surfaceDimensions; };
@@ -1206,12 +1204,6 @@

{{GamepadTouch/touchId}} SHOULD be set to a default value of 0 when a new {{Gamepad}} object is created. -
- surfaceId -
-
- Unique id of the surface that generated the touch event. -
position
@@ -1222,6 +1214,34 @@

Along the y-axis, -1.0 references the topmost coordinate and 1.0 references the bottommost coordinate. MUST be a two-element array. +

+ +
+

+ GamepadSurface dictionary +

+

+ This dictionary defines a single surface on a gamepad device that + supports input. The event consists of a touch id that uniquely + identifies the touch point from the time the input medium (e.g. finger, + stylus, etc) makes contact with the touch device, up to the time the + input medium is no longer making contact with the touch device. +

+
+        [Exposed=Window, SecureContext]
+        dictionary GamepadSurface {
+          octet surfaceId;
+          FrozenArray<GamepadTouch>? touches;
+          Uint32Array surfaceDimensions;
+        };
+      
+
+
+ surfaceId +
+
+ Unique id of the surface that generated the touch event. +
surfaceDimensions