Click or drag to resize

TouchPointer Class

A pointer of type Touch.
Inheritance Hierarchy

Namespace:  TouchScript.Pointers
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public class TouchPointer : Pointer

The TouchPointer type exposes the following members.

Constructors
  NameDescription
Public methodTouchPointer
Initializes a new instance of the TouchPointer class.
Top
Properties
  NameDescription
Public propertyButtons
Current buttons state of the pointer.
(Inherited from Pointer.)
Public propertyFlags

Gets or sets pointer flags: [!:FLAG_ARTIFICIAL]

Note: setting this property doesn't immediately change its value, the value actually changes during the next TouchManager update phase.

(Inherited from Pointer.)
Public propertyId
Internal unique pointer id.
(Inherited from Pointer.)
Public propertyInputSource
Original input source which created this pointer.
(Inherited from Pointer.)
Public propertyPosition
Current position in screen coordinates.
(Inherited from Pointer.)
Public propertyPressure
Gets or sets the touch's pressure.
Public propertyPreviousPosition
Previous position in screen coordinates.
(Inherited from Pointer.)
Public propertyProjectionParams
Projection parameters for the layer which created this pointer.
(Inherited from Pointer.)
Public propertyRotation
Gets or sets the touch's rotation.
Public propertyType (Inherited from Pointer.)
Top
Methods
  NameDescription
Public methodCopyFrom
Copies values from the target.
(Inherited from Pointer.)
Public methodEquals(Object) (Inherited from Pointer.)
Public methodEquals(Pointer) (Inherited from Pointer.)
Public methodGetHashCode (Inherited from Pointer.)
Public methodGetOverData
Returns HitData for current pointer position, i.e. what is right beneath it. Caches the result for the entire frame.
(Inherited from Pointer.)
Public methodGetPressData
Returns HitData when the pointer was pressed. If the pointer is not pressed uninitialized HitData is returned.
(Inherited from Pointer.)
Public methodToString (Inherited from Pointer.)
Top
Fields
  NameDescription
Public fieldStatic memberDEFAULT_PRESSURE
Default pressure value when device doesn't provide it.
Public fieldStatic memberDEFAULT_ROTATION
Default rotation value when device doesn't provide it.
Top
See Also