diff --git a/index.html b/index.html index b488a7f..6be5a5b 100644 --- a/index.html +++ b/index.html @@ -485,8 +485,8 @@

The {{Gamepad/touches}} getter steps are:

    -
  1. If [=this=].{{Gamepad/[[touches]]}} not `null` and not - empty, return [=this=].{{Gamepad/[[touches]]}}. +
  2. If [=this=].{{Gamepad/[[touches]]}} not `null` and not empty, + return [=this=].{{Gamepad/[[touches]]}}.
  3. Otherwise return `null`.
  4. @@ -679,8 +679,8 @@

- To update touches for |gamepad:Gamepad|, run - the following steps: + To update touches for |gamepad:Gamepad|, run the following + steps:

  1. Let |surfaceId:unsigned long| be 0. @@ -808,8 +808,8 @@

  2. Initialize |gamepad|.{{Gamepad/[[buttons]]}} to the result of [=initializing buttons=] for |gamepad|.
  3. -
  4. Initialize |gamepad|.{{Gamepad/[[touches]]}} to the - result of [=initializing touches=] for |gamepad|. +
  5. Initialize |gamepad|.{{Gamepad/[[touches]]}} to the result of + [=initializing touches=] for |gamepad|.
  6. Initialize |gamepad|.{{Gamepad/[[vibrationActuator]]}} following the steps of [=constructing a GamepadHapticActuator=] @@ -1020,15 +1020,15 @@

- To initialize - touches for a gamepad, run the following steps: + To initialize touches for a + gamepad, run the following steps:

  1. If the |gamepad| has touch surfaces, initialize |gamepad|'s {{Gamepad/touches}} to an empty [=list=].
  2. -
  3. Otherwise, initialize |gamepad|'s {{Gamepad/touches}} - null. +
  4. Otherwise, initialize |gamepad|'s {{Gamepad/touches}} + null.
@@ -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
@@ -2454,12 +2474,13 @@

Glossary

- touch surface is a surface that can detect contact from a - users fingers and report where on the surface the contact is made. + touch surface is a surface that can + detect contact from a users fingers and report where on the surface the + contact is made.

- touch surface enumeration order is an ordered listing of all - the surfaces in a |gamepad|. + touch surface enumeration order is an + ordered listing of all the surfaces in a |gamepad|.

active touch point is defined in the