docs.unity3d.com
    Show / Hide Table of Contents

    Class TouchscreenGestureInputController

    An input device representing mobile 2D screen gestures.

    Inheritance
    Object
    InputControl
    InputDevice
    TrackedDevice
    XRController
    TouchscreenGestureInputController
    Inherited Members
    XRController.leftHand
    XRController.rightHand
    TrackedDevice.trackingState
    TrackedDevice.isTracked
    TrackedDevice.devicePosition
    TrackedDevice.deviceRotation
    InputDevice.InvalidDeviceId
    InputDevice.ReadValueFromBufferAsObject(Void*, Int32)
    InputDevice.ReadValueFromStateAsObject(Void*)
    InputDevice.ReadValueFromStateIntoBuffer(Void*, Void*, Int32)
    InputDevice.CompareValue(Void*, Void*)
    InputDevice.MakeCurrent()
    InputDevice.OnConfigurationChanged()
    InputDevice.ExecuteCommand<TCommand>(TCommand)
    InputDevice.ExecuteCommand(InputDeviceCommand*)
    InputDevice.description
    InputDevice.enabled
    InputDevice.canRunInBackground
    InputDevice.added
    InputDevice.remote
    InputDevice.native
    InputDevice.updateBeforeRender
    InputDevice.deviceId
    InputDevice.lastUpdateTime
    InputDevice.wasUpdatedThisFrame
    InputDevice.allControls
    InputDevice.valueType
    InputDevice.valueSizeInBytes
    InputControl.m_StateBlock
    InputControl.EvaluateMagnitude()
    InputControl.EvaluateMagnitude(Void*)
    InputControl.WriteValueFromBufferIntoState(Void*, Int32, Void*)
    InputControl.WriteValueFromObjectIntoState(Object, Void*)
    InputControl.TryGetChildControl(String)
    InputControl.TryGetChildControl<TControl>(String)
    InputControl.GetChildControl(String)
    InputControl.GetChildControl<TControl>(String)
    InputControl.RefreshConfigurationIfNeeded()
    InputControl.RefreshConfiguration()
    InputControl.CalculateOptimizedControlDataType()
    InputControl.ApplyParameterChanges()
    InputControl.name
    InputControl.displayName
    InputControl.shortDisplayName
    InputControl.path
    InputControl.layout
    InputControl.variants
    InputControl.device
    InputControl.parent
    InputControl.children
    InputControl.usages
    InputControl.aliases
    InputControl.stateBlock
    InputControl.noisy
    InputControl.synthetic
    InputControl.Item[String]
    InputControl.magnitude
    InputControl.currentStatePtr
    InputControl.previousFrameStatePtr
    InputControl.defaultStatePtr
    InputControl.noiseMaskPtr
    InputControl.stateOffsetRelativeToDeviceRoot
    InputControl.optimizedControlDataType
    Object.Equals(Object)
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetHashCode()
    Object.GetType()
    Object.MemberwiseClone()
    Namespace: UnityEngine.XR.Interaction.Toolkit.AR.Inputs
    Syntax
    [InputControlLayout(stateType = typeof(TouchscreenGestureInputControllerState), displayName = "Touchscreen Gesture Input Controller", isGenericTypeOfDevice = true, updateBeforeRender = true)]
    [Preserve]
    public class TouchscreenGestureInputController : XRController, IInputUpdateCallbackReceiver

    Properties

    dragCurrentPosition

    The current screen position of the drag gesture.

    Declaration
    public Vector2Control dragCurrentPosition { get; }
    Property Value
    Type Description
    Vector2Control

    dragDelta

    The delta screen position of the drag gesture.

    Declaration
    public Vector2Control dragDelta { get; }
    Property Value
    Type Description
    Vector2Control

    dragStartPosition

    The screen position where the drag gesture started.

    Declaration
    public Vector2Control dragStartPosition { get; }
    Property Value
    Type Description
    Vector2Control

    fingerCount

    The number of fingers on the touchscreen.

    Declaration
    public IntegerControl fingerCount { get; }
    Property Value
    Type Description
    IntegerControl

    pinchGap

    The gap between then position of the first and second fingers for the pinch gesture.

    Declaration
    public AxisControl pinchGap { get; }
    Property Value
    Type Description
    AxisControl

    pinchGapDelta

    The gap delta between then position of the first and second fingers for the pinch gesture.

    Declaration
    public AxisControl pinchGapDelta { get; }
    Property Value
    Type Description
    AxisControl

    pinchStartPosition1

    The screen position of the first finger where the pinch gesture started.

    Declaration
    public Vector2Control pinchStartPosition1 { get; }
    Property Value
    Type Description
    Vector2Control

    pinchStartPosition2

    The screen position of the second finger where the pinch gesture started.

    Declaration
    public Vector2Control pinchStartPosition2 { get; }
    Property Value
    Type Description
    Vector2Control

    tapStartPosition

    The screen position where the tap gesture started.

    Declaration
    public Vector2Control tapStartPosition { get; }
    Property Value
    Type Description
    Vector2Control

    twistDeltaRotation

    The delta rotation of the twist gesture.

    Declaration
    public AxisControl twistDeltaRotation { get; }
    Property Value
    Type Description
    AxisControl

    twistStartPosition1

    The screen position of the first finger where the twist gesture started.

    Declaration
    public Vector2Control twistStartPosition1 { get; }
    Property Value
    Type Description
    Vector2Control

    twistStartPosition2

    The screen position of the second finger where the twist gesture started.

    Declaration
    public Vector2Control twistStartPosition2 { get; }
    Property Value
    Type Description
    Vector2Control

    twoFingerDragCurrentPosition

    The current screen position of the two-finger drag gesture.

    Declaration
    public Vector2Control twoFingerDragCurrentPosition { get; }
    Property Value
    Type Description
    Vector2Control

    twoFingerDragDelta

    The delta screen position of the two-finger drag gesture.

    Declaration
    public Vector2Control twoFingerDragDelta { get; }
    Property Value
    Type Description
    Vector2Control

    twoFingerDragStartPosition1

    The screen position of the first finger where the two-finger drag gesture started.

    Declaration
    public Vector2Control twoFingerDragStartPosition1 { get; }
    Property Value
    Type Description
    Vector2Control

    twoFingerDragStartPosition2

    The screen position of the second finger where the two-finger drag gesture started.

    Declaration
    public Vector2Control twoFingerDragStartPosition2 { get; }
    Property Value
    Type Description
    Vector2Control

    Methods

    FinishSetup()

    Finishes setting up all the input values for the controller.

    Declaration
    protected override void FinishSetup()
    Overrides
    XRController.FinishSetup()

    OnAdded()

    Declaration
    protected override void OnAdded()
    Overrides
    InputDevice.OnAdded()

    OnRemoved()

    Declaration
    protected override void OnRemoved()
    Overrides
    InputDevice.OnRemoved()

    OnUpdate()

    Declaration
    public void OnUpdate()
    Implements
    IInputUpdateCallbackReceiver.OnUpdate()

    ToString()

    Converts state data to a string.

    Declaration
    public override string ToString()
    Returns
    Type Description
    String

    A string representation.

    Overrides
    InputControl.ToString()
    Back to top
    Copyright © 2023 Unity Technologies — Terms of use
    • Legal
    • Privacy Policy
    • Cookies
    • Do Not Sell or Share My Personal Information
    • Your Privacy Choices (Cookie Settings)
    "Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
    Generated by DocFX on 18 October 2023