Table of Contents

Struct GestureSample

Namespace
Microsoft.Xna.Framework.Input.Touch
Assembly
MonoGame.Framework.dll

Represents data from a multi-touch gesture over a span of time.

public struct GestureSample
Inherited Members

Constructors

GestureSample(GestureType, TimeSpan, Vector2, Vector2, Vector2, Vector2)

Initializes a new GestureSample.

public GestureSample(GestureType gestureType, TimeSpan timestamp, Vector2 position, Vector2 position2, Vector2 delta, Vector2 delta2)

Parameters

gestureType GestureType

GestureType

timestamp TimeSpan
position Vector2
position2 Vector2
delta Vector2
delta2 Vector2

Properties

Delta

Gets the delta information for the first touch-point in the gesture sample.

public Vector2 Delta { get; }

Property Value

Vector2

Delta2

Gets the delta information for the second touch-point in the gesture sample.

public Vector2 Delta2 { get; }

Property Value

Vector2

GestureType

Gets the type of the gesture.

public GestureType GestureType { get; }

Property Value

GestureType

Position

Gets the position of the first touch-point in the gesture sample.

public Vector2 Position { get; }

Property Value

Vector2

Position2

Gets the position of the second touch-point in the gesture sample.

public Vector2 Position2 { get; }

Property Value

Vector2

Timestamp

Gets the starting time for this multi-touch gesture sample.

public TimeSpan Timestamp { get; }

Property Value

TimeSpan