- From: fernando-80 <notifications@github.com>
- Date: Thu, 05 Nov 2020 17:10:00 -0800
- To: w3c/gamepad <gamepad@noreply.github.com>
- Cc: Subscribed <subscribed@noreply.github.com>
Received on Friday, 6 November 2020 01:10:13 UTC
@fernando-80 commented on this pull request.
> + <h2><dfn>GamepadTouch</dfn> Interface</h2>
+ <p>
+ This interface defines a single touch event 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;
Hi @marcoscaceres we thought about representing the absent surfaceDimensions with "null". Would there be any advantages to use the empty array instead? thanks~
--
You are receiving this because you are subscribed to this thread.
Reply to this email directly or view it on GitHub:
https://github.com/w3c/gamepad/pull/142#discussion_r518464517
Received on Friday, 6 November 2020 01:10:13 UTC