Learn / Documentation / Script Reference / SimulatedTouch
Manual

SimulatedTouch

class in Doozy.Engine.Touchy

Description

Creates a simulated Touch struct that describes the status of a finger touching the screen

Properties

  •  public int FingerId – The unique index for the touch

  •  public Vector2 Position – The position of the touch in pixel coordinates

  •  public Vector2 RawPosition – The raw position used for the touch

  •  public Vector2 DeltaPosition – The position delta since last change

  •  public float DeltaTime – Amount of time that has passed since the last recorded change in Touch values

  •  public int TapCount – Number of taps

  •  public TouchPhase Phase – Describes the phase of the touch

  •  public float Pressure – The current amount of pressure being applied to a touch. 1.0f is considered to be the pressure of an average touch. If Input.touchPressureSupported returns false, the value of this property will always be 1.0f

  •  public float MaximumPossiblePressure – The maximum possible pressure value for a platform. If Input.touchPressureSupported returns false, the value of this property will always be 1.0f

  •  public TouchType Type – A value that indicates whether a touch was of Direct, Indirect (or remote), or Stylus type

  •  public float AltitudeAngle – Value of 0 radians indicates that the stylus is parallel to the surface, pi/2 indicates that it is perpendicular

  •  public float AzimuthAngle – Value of 0 radians indicates that the stylus is pointed along the x-axis of the device

  •  public float Radius – An estimated value of the radius of a touch. Add radiusVariance to get the maximum touch size, subtract it to get the minimum touch size

  •  public float RadiusVariance – The amount that the radius varies by for a touch

Public Methods

  •  public Touch Get() – Returns the simulated Touch struct