Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GestureConfigLongPress Class

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

    Configuration class the Long Press gestures.

    System.Object → GestureConfig → GestureConfigLongPress
    Derived from GestureConfigLongPress:

    public sealed class GestureConfigLongPress : GestureConfig
    Remarks

    A longPress gesture can be composed of 1 or more fingers.

    Name Description
    Constructors
    GestureConfigLongPress()

    Create a default LongPress gesture configuration.

    Properties
    MaximumTranslationDistance

    The value represents the maximum distance a finger can translate during the longPress action.

    RequiredPressTime

    The time the user has to hold his finger on the screen to trigger the gesture.

    | Improve this Doc View Source

    Constructors


    GestureConfigLongPress()

    Create a default LongPress gesture configuration.

    public GestureConfigLongPress()
    Remarks

    Single finger and 1 second long press.

    | Improve this Doc View Source

    Properties


    MaximumTranslationDistance

    The value represents the maximum distance a finger can translate during the longPress action.

    public float MaximumTranslationDistance { get; set; }
    Property Value
    Type Description
    System.Single
    Remarks

    By increasing this value, the user allows small movements of the fingers during the long press. By decreasing this value, the user forbids any movements during the long press.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    The value has to be positive.

    System.InvalidOperationException

    Tried to modify the configuration after it has been frozen by the system.


    RequiredPressTime

    The time the user has to hold his finger on the screen to trigger the gesture.

    public TimeSpan RequiredPressTime { get; set; }
    Property Value
    Type Description
    System.TimeSpan
    Exceptions
    Type Condition
    System.InvalidOperationException

    Tried to modify the configuration after it has been frozen by the system.


    Inherited Members

    GestureConfig.AssociatedGestureType
    GestureConfig.RequiredNumberOfFingers

    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