Stride

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

  • Discord
  • Facebook
  • Twitter
  • YouTube

LANGUAGE

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

    GestureConfig Class

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

    This represents the base class for all gesture configuration.

    System.Object → GestureConfig
    Derived from GestureConfig: GestureConfigComposite GestureConfigDrag GestureConfigFlick GestureConfigLongPress GestureConfigTap

    public abstract class GestureConfig
    Remarks

    Gesture configurations cannot be modified after being added to the input system for gesture recognition. Doing so will throw an System.InvalidOperationException.

    Gesture Recognizers work with normalized coordinates belonging to [0,1]x[0,1/screenRatio] so distances, speeds and margin errors need to be expressed relatively to this coordinates system.

    Name Description
    Properties
    AssociatedGestureType

    Specify the GestureType corresponding to this configuration.

    RequiredNumberOfFingers

    This value represents the required number of simultaneous finger to tap to trigger the gesture. For example: 1 for single finger, and so on...

    | Improve this Doc View Source

    Properties


    AssociatedGestureType

    Specify the GestureType corresponding to this configuration.

    public GestureType AssociatedGestureType { get; protected set; }
    Property Value
    Type Description
    GestureType

    RequiredNumberOfFingers

    This value represents the required number of simultaneous finger to tap to trigger the gesture. For example: 1 for single finger, and so on...

    public int RequiredNumberOfFingers { get; set; }
    Property Value
    Type Description
    System.Int32
    Remarks

    This value is strictly positive.

    Exceptions
    Type Condition
    System.ArgumentOutOfRangeException

    The given value is not in the allowed range.

    System.InvalidOperationException

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


    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