Stride

OPEN / CLOSE
  • Features
  • Blog
  • Documentation
  • Community
(icon) Download

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

OPEN / CLOSE
  • English
  • 日本語
    Show / Hide Table of Contents

    GestureEvent Class

    Namespace: Stride.Input
    Assembly: Stride.Input.dll

    Base class for the gesture events.

    System.Object → GestureEvent
    Derived from GestureEvent: GestureEventComposite GestureEventLongPress GestureEventTap GestureEventTranslation

    public abstract class GestureEvent
    Name Description
    Properties
    DeltaTime

    The time elapsed between the two last events of the gesture.

    NumberOfFinger

    The number of fingers involved in the gesture.

    State

    The state of the gesture.

    TotalTime

    The time elapsed since the beginning of the gesture.

    Type

    The type of the gesture.

    | Improve this Doc View Source

    Properties


    DeltaTime

    The time elapsed between the two last events of the gesture.

    public TimeSpan DeltaTime { get; }
    Property Value
    Type Description
    System.TimeSpan
    Remarks

    This value is equal to TotalTime for discrete gestures.


    NumberOfFinger

    The number of fingers involved in the gesture.

    public int NumberOfFinger { get; }
    Property Value
    Type Description
    System.Int32

    State

    The state of the gesture.

    public GestureState State { get; }
    Property Value
    Type Description
    GestureState

    TotalTime

    The time elapsed since the beginning of the gesture.

    public TimeSpan TotalTime { get; }
    Property Value
    Type Description
    System.TimeSpan

    Type

    The type of the gesture.

    public GestureType Type { get; }
    Property Value
    Type Description
    GestureType

    Extension Methods

    ComponentBaseExtensions.DisposeBy<T>(T, ICollectorHolder)
    ComponentBaseExtensions.RemoveDisposeBy<T>(T, ICollectorHolder)
    • Improve this Doc
    • View Source
    In This Article

    Back to top

    Copyright © 2019-2021 .NET Foundation and Contributors
    Supported by the .NET Foundation