Table of Contents

Enum GestureType

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

Enumeration of values that represent different gestures that can be processed by ReadGesture().

[Flags]
public enum GestureType

Fields

DoubleTap = 256

The user tapped the device twice which is always preceded by a Tap gesture.

DragComplete = 2

States completion of a drag gesture(VerticalDrag, HorizontalDrag, or FreeDrag).

Flick = 4

States that a touch was combined with a quick swipe.

FreeDrag = 8

The user touched a point and then performed a free-form drag.

Hold = 16

The user touched a single point for approximately one second.

HorizontalDrag = 32

The user touched the screen and performed either left to right or right to left drag gesture.

None = 0

No gestures.

Pinch = 64

The user either converged or diverged two touch-points on the screen which is like a two-finger drag.

PinchComplete = 128

An in-progress pinch operation was completed.

Tap = 1

The user touched a single point.

VerticalDrag = 512

The user touched the screen and performed either top to bottom or bottom to top drag gesture.