diff --git a/index.html b/index.html index da57786..f251b10 100644 --- a/index.html +++ b/index.html @@ -265,6 +265,11 @@

Touch Interface

attributes must not change.

+enum TouchType {
+    "direct",
+    "stylus"
+};
+
 dictionary TouchInit {
     required long        identifier;
     required EventTarget target;
@@ -278,6 +283,9 @@ 

Touch Interface

float radiusY = 0; float rotationAngle = 0; float force = 0; + double altitudeAngle = 0; + double azimuthAngle = 0; + TouchType touchType = "direct"; }; [Constructor(TouchInit touchInitDict)] @@ -294,9 +302,12 @@

Touch Interface

readonly attribute float radiusY; readonly attribute float rotationAngle; readonly attribute float force; + readonly attribute float altitudeAngle; + readonly attribute float azimuthAngle; + readonly attribute TouchType touchType; };
-
+
identifier

An identification number for each touch point.

@@ -375,6 +386,43 @@

Touch Interface

known, the absolute pressure represented by the force attribute, and the sensitivity in levels of pressure, may vary.

+
altitudeAngle
+
+

The altitude (in radians) of a stylus, in the range 0 + (parallel to the surface) to π/2 (perpendicular to the + surface). The value 0 should be used for devices which + do not support this property.

+
+
azimuthAngle
+
+

The azimuth angle (in radians) of a stylus, in the range 0 + to . 0 represents a stylus whose cap is + pointing in the direction of increasing screenX values. + π/2 represents a stylus whose cap is pointing in the + direction of increasing screenY values. + The value 0 should be used for devices which + do not support this property.

+
+
touchType
+
+

The type of device used to trigger the touch.

+
+
+
+
TouchType
+
+

An enumeration representing the different types of possible touch input.

+
+
+
+
direct
+
+

A direct touch from a finger on the screen.

+
+
stylus
+
+

A touch from a stylus or pen device.

+