diff --git a/index.html b/index.html index da57786..f251b10 100644 --- a/index.html +++ b/index.html @@ -265,6 +265,11 @@
Touch
Interface+enum TouchType { + "direct", + "stylus" +}; + dictionary TouchInit { required long identifier; required EventTarget target; @@ -278,6 +283,9 @@-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
Interfacereadonly attribute float radiusY; readonly attribute float rotationAngle; readonly attribute float force; + readonly attribute float altitudeAngle; + readonly attribute float azimuthAngle; + readonly attribute TouchType touchType; };
Touch
Interface
An identification number for each touch point.
@@ -375,6 +386,43 @@Touch
InterfaceThe 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.
The azimuth angle (in radians) of a stylus, in the range 0
+ to 2π
. 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.
The type of device used to trigger the touch.
+An enumeration representing the different types of possible touch input.
+A direct touch from a finger on the screen.
+A touch from a stylus or pen device.
+