Skip to content
This repository was archived by the owner on Jul 9, 2024. It is now read-only.
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
50 changes: 49 additions & 1 deletion index.html
Original file line number Diff line number Diff line change
Expand Up @@ -265,6 +265,11 @@ <h2><a><code>Touch</code></a> Interface</h2>
attributes must not change.
</p>
<pre class="idl">
enum TouchType {
"direct",
"stylus"
};

dictionary TouchInit {
required long identifier;
required EventTarget target;
Expand All @@ -278,6 +283,9 @@ <h2><a><code>Touch</code></a> Interface</h2>
float radiusY = 0;
float rotationAngle = 0;
float force = 0;
double altitudeAngle = 0;
double azimuthAngle = 0;
TouchType touchType = "direct";
};

[Constructor(TouchInit touchInitDict)]
Expand All @@ -294,9 +302,12 @@ <h2><a><code>Touch</code></a> Interface</h2>
readonly attribute float radiusY;
readonly attribute float rotationAngle;
readonly attribute float force;
readonly attribute float altitudeAngle;
readonly attribute float azimuthAngle;
readonly attribute TouchType touchType;
};
</pre>
<dl dfn-for="Touch" link-for="Touch">
<dl data-dfn-for="Touch" data-link-for="Touch">
<dt><dfn>identifier</dfn></dt>
<dd>
<p>An identification number for each <a>touch point</a>.</p>
Expand Down Expand Up @@ -375,6 +386,43 @@ <h2><a><code>Touch</code></a> Interface</h2>
known, the absolute pressure represented by the force attribute, and
the sensitivity in levels of pressure, may vary.</p>
</dd>
<dt><dfn>altitudeAngle</dfn></dt>
<dd>
<p>The altitude (in radians) of a stylus, in the range <code>0</code>
(parallel to the surface) to <code>&pi;/2</code> (perpendicular to the
surface). The value <code>0</code> should be used for devices which
do not support this property.</p>
</dd>
<dt><dfn>azimuthAngle</dfn></dt>
<dd>
<p>The azimuth angle (in radians) of a stylus, in the range <code>0</code>
to <code>2&pi;</code>. <code>0</code> represents a stylus whose cap is
pointing in the direction of increasing screenX values.
<code>&pi;/2</code> represents a stylus whose cap is pointing in the
direction of increasing screenY values.
The value <code>0</code> should be used for devices which
do not support this property.</p>
</dd>
<dt><dfn>touchType</dfn></dt>
<dd>
<p>The type of device used to trigger the touch.</p>
</dd>
</dl>
<dl>
<dt><dfn>TouchType</dfn></dt>
<dd>
<p>An enumeration representing the different types of possible touch input.</p>
</dd>
</dl>
<dl data-dfn-for="TouchType" data-link-for="TouchType">
<dt><dfn>direct</dfn></dt>
<dd>
<p>A direct touch from a finger on the screen.</p>
</dd>
<dt><dfn>stylus</dfn></dt>
<dd>
<p>A touch from a stylus or pen device.</p>
</dd>
</dl>
</section>

Expand Down