Properties

This section describes properties associated with touch and gestures.

In this section

TopicDescription

currentPoint

Gets a PointerPoint object that provides basic info on the pointer associated with the event.

expansion

Diameter of the manipulation area from the last MSGestureEvent of the interaction.

gestureObject

Returns the MSGesture object for an element.

hwTimestamp

Returns the time at which the pointer data was reported by the hardware, in microseconds.

intermediatePoints

Retrieves a collection of PointerPoint objects that represent the pointer history from the last pointer event up to and including the current pointer event. Each PointerPoint in the collection provides basic info on the pointer associated with the event.

isPrimary

Returns whether the pointer associated with the event is the primary pointer for the current mouse, touch, or pen interaction.

msManipulationViewsEnabled

Returns whether manipulation feature support is available, such as touch panning and zooming using Cascading Style Sheets (CSS) rules.

msMaxTouchPoints

Returns the maximum number of touch points supported.

msPointerEnabled

Returns whether pointer input features are enabled for touch or mouse, such as pointer or gesture events.

pointerId

The unique identifier of the contact for a touch, mouse or pen.

pointerType

Returns whether the source of the event is touch, pen or mouse.

pressure

Returns pen pressure normalized in a range of 0 to 255.

rotation

Clockwise rotation of the cursor around its own major axis expressed as a value in radians from the last MSGestureEvent of the interaction.

scale

Scale factor for zoom from the last MSGestureEvent of the interaction.

target (MSGesture)

Get or set the element that you want to fire MSGestureEvents.

tiltX

Returns the angle between the Y-Z plane and the plane containing the pen axis and the Y axis in the range of -90 to +90. A positive X tilt is to the right.

tiltY

Returns the angle between the X-Z and transducer-X planes. A positive Y tilt is toward the user.

translationX

Translation along x-axis from the last MSGestureEvent of the interaction.

translationY

Translation along y-axis from the last MSGestureEvent of the interaction.

velocityAngular

Angular velocity in radians.

velocityExpansion

Velocity of expanding manipulation area.

velocityX

Velocity of movement along x-axis.

velocityY

Velocity of movement along y-axis.

 

 

 

Build date: 11/29/2012

Show:
© 2015 Microsoft