Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GestureEventTranslation Class

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

    Event class for the Drag gesture.

    System.Object → GestureEvent → GestureEventTranslation
    Derived from GestureEventTranslation: GestureEventDrag GestureEventFlick

    public class GestureEventTranslation : GestureEvent
    Name Description
    Properties
    AverageSpeed

    The average translation speed (in pixels per seconds) of the drag event.

    CurrentPosition

    The current position of the drag event.

    DeltaTranslation

    The translation performed since the last event of the gesture.

    Shape

    The Shape of the drag.

    StartPosition

    The position where the drag event started.

    TotalTranslation

    The translation performed since the beginning of the gesture.

    | Improve this Doc View Source

    Properties


    AverageSpeed

    The average translation speed (in pixels per seconds) of the drag event.

    public Vector2 AverageSpeed { get; }
    Property Value
    Type Description
    Vector2

    CurrentPosition

    The current position of the drag event.

    public Vector2 CurrentPosition { get; }
    Property Value
    Type Description
    Vector2

    DeltaTranslation

    The translation performed since the last event of the gesture.

    public Vector2 DeltaTranslation { get; }
    Property Value
    Type Description
    Vector2

    Shape

    The Shape of the drag.

    public GestureShape Shape { get; }
    Property Value
    Type Description
    GestureShape

    StartPosition

    The position where the drag event started.

    public Vector2 StartPosition { get; }
    Property Value
    Type Description
    Vector2

    TotalTranslation

    The translation performed since the beginning of the gesture.

    public Vector2 TotalTranslation { get; }
    Property Value
    Type Description
    Vector2

    Inherited Members

    GestureEvent.State
    GestureEvent.Type
    GestureEvent.NumberOfFinger
    GestureEvent.DeltaTime
    GestureEvent.TotalTime

    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