Table of Contents

Class TouchInput

Namespace
Fantas.Input
Assembly
Fantas.dll

Touch Input (TouchScreen devices)

public static class TouchInput
Inheritance
TouchInput
Inherited Members

Properties

AnyTouch

Check if there is any Touch event just happened

public static bool AnyTouch { get; }

Property Value

bool

True if there are any touches in the Down or Moved state, false otherwise

AnyTouchDown

Check if there is any TouchDown event that just happened

public static bool AnyTouchDown { get; }

Property Value

bool

AnyTouchUp

Check if there is any TouchUp event that just happened

public static bool AnyTouchUp { get; }

Property Value

bool

IsDoubleTapEnabled

Enable/Disable Double Tap gesture

public static bool IsDoubleTapEnabled { get; set; }

Property Value

bool

IsLongPressEnabled

Enable/Disable Long Press gesture

public static bool IsLongPressEnabled { get; set; }

Property Value

bool

IsNodeEventsEnabled

Enable/Disable touch/gesture node events Tap/DoubleTap/LongPress/TouchUpInside

public static bool IsNodeEventsEnabled { get; set; }

Property Value

bool

IsPanEnabled

Enable/Disable Pan gesture

public static bool IsPanEnabled { get; set; }

Property Value

bool

IsPinchEnabled

Enable/Disable Pinch gesture

public static bool IsPinchEnabled { get; set; }

Property Value

bool

IsSwipeEnabled

Enable/Disable Swipe gesture

public static bool IsSwipeEnabled { get; set; }

Property Value

bool

IsTapEnabled

Enable/Disable Tap gesture

public static bool IsTapEnabled { get; set; }

Property Value

bool

Touches

Get current frame touches information

public static TouchInfo[] Touches { get; }

Property Value

TouchInfo[]

Methods

DisableGestures()

Disable All Touch gestures

public static void DisableGestures()

InvokeDoubleTap(PointF)

Invoke DoubleTap event handlers

public static void InvokeDoubleTap(PointF location)

Parameters

location PointF

InvokeLongPress(PointF)

Invoke LongPress event handlers

public static void InvokeLongPress(PointF location)

Parameters

location PointF

InvokeTap(PointF)

Invoke Tap event handlers

public static void InvokeTap(PointF location)

Parameters

location PointF

InvokeTouchDown(TouchInfo)

Invoke TouchDown handlers

public static void InvokeTouchDown(TouchInfo touchInfo)

Parameters

touchInfo TouchInfo

InvokeTouchMove(TouchInfo)

Invoke TouchMove handlers

public static void InvokeTouchMove(TouchInfo touchInfo)

Parameters

touchInfo TouchInfo

InvokeTouchUp(TouchInfo)

Invoke TouchUp handlers

public static void InvokeTouchUp(TouchInfo touchInfo)

Parameters

touchInfo TouchInfo

ResetTouch()

Reset Touch buffer (used by tests)

public static void ResetTouch()