Class TouchControl | Package Manager UI website
docs.unity3d.com
    Show / Hide Table of Contents

    Class TouchControl

    A control representing a touch contact.

    Inheritance
    System.Object
    InputControl
    InputControl<TouchState>
    TouchControl
    Inherited Members
    InputControl<TouchState>.valueType
    InputControl<TouchState>.valueSizeInBytes
    InputControl<TouchState>.ReadValue()
    InputControl<TouchState>.ReadValueFromPreviousFrame()
    InputControl<TouchState>.ReadDefaultValue()
    InputControl<TouchState>.ReadValueFromState(Void*)
    InputControl<TouchState>.ReadUnprocessedValue()
    InputControl<TouchState>.ReadValueFromStateAsObject(Void*)
    InputControl<TouchState>.ReadValueFromStateIntoBuffer(Void*, Void*, Int32)
    InputControl<TouchState>.WriteValueFromBufferIntoState(Void*, Int32, Void*)
    InputControl<TouchState>.WriteValueFromObjectIntoState(Object, Void*)
    InputControl<TouchState>.CompareValue(Void*, Void*)
    InputControl<TouchState>.ProcessValue(TouchState)
    InputControl.ReservedCharacters
    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.ToString()
    InputControl.EvaluateMagnitude()
    InputControl.EvaluateMagnitude(Void*)
    InputControl.CompareState(Void*, Void*, Void*)
    InputControl.TryGetChildControl(String)
    InputControl.RefreshConfigurationIfNeeded()
    InputControl.RefreshConfiguration()
    InputControl.m_StateBlock
    InputControl.currentStatePtr
    InputControl.previousFrameStatePtr
    InputControl.defaultStatePtr
    InputControl.noiseMaskPtr
    InputControl.stateOffsetRelativeToDeviceRoot
    System.Object.Equals(System.Object)
    System.Object.Equals(System.Object, System.Object)
    System.Object.ReferenceEquals(System.Object, System.Object)
    System.Object.GetHashCode()
    System.Object.GetType()
    System.Object.MemberwiseClone()
    Namespace: UnityEngine.Experimental.Input.Controls
    Syntax
    public class TouchControl : InputControl<TouchState>

    Constructors

    TouchControl()

    Declaration
    public TouchControl()

    Properties

    delta

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

    displayIndex

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

    indirectTouch

    Declaration
    public ButtonControl indirectTouch { get; }
    Property Value
    Type Description
    ButtonControl

    phase

    Declaration
    public PointerPhaseControl phase { get; }
    Property Value
    Type Description
    PointerPhaseControl

    position

    Absolute position on the touch surface.

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

    pressure

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

    radius

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

    touchId

    The ID of the touch contact as reported by the underlying system.

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

    Methods

    FinishSetup(InputDeviceBuilder)

    Declaration
    protected override void FinishSetup(InputDeviceBuilder builder)
    Parameters
    Type Name Description
    InputDeviceBuilder builder
    Overrides
    InputControl.FinishSetup(InputDeviceBuilder)

    ReadUnprocessedValueFromState(Void*)

    Declaration
    public override TouchState ReadUnprocessedValueFromState(void *statePtr)
    Parameters
    Type Name Description
    System.Void* statePtr
    Returns
    Type Description
    TouchState
    Overrides
    UnityEngine.Experimental.Input.InputControl<TouchState>.ReadUnprocessedValueFromState(System.Void*)

    WriteValueIntoState(TouchState, Void*)

    Declaration
    public override void WriteValueIntoState(TouchState value, void *statePtr)
    Parameters
    Type Name Description
    TouchState value
    System.Void* statePtr
    Overrides
    UnityEngine.Experimental.Input.InputControl<TouchState>.WriteValueIntoState(TouchState, System.Void*)
    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