Skip to content

Commit

Permalink
Change GamepadTouch to dictionary
Browse files Browse the repository at this point in the history
  • Loading branch information
bradleyneedham committed Jul 10, 2024
1 parent 9421da4 commit 349a9e4
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -1169,22 +1169,22 @@ <h2>
</section>
<section data-dfn-for="GamepadTouch">
<h2>
<dfn>GamepadTouch</dfn> Interface
<dfn>GamepadTouch</dfn> dictionary
</h2>
<p>
This interface defines a single touch event on a gamepad device that
This dictionary defines a single touch 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.
</p>
<pre class="idl">
[Exposed=Window, SecureContext]
interface GamepadTouch {
readonly attribute unsigned long touchId;
readonly attribute octet surfaceId;
readonly attribute Float32Array position;
readonly attribute Uint32Array? surfaceDimensions;
dictionary GamepadTouch {
unsigned long touchId;
octet surfaceId;
Float32Array position;
Uint32Array surfaceDimensions;
};
</pre>
<dl>
Expand Down

0 comments on commit 349a9e4

Please sign in to comment.