docs.unity3d.com
    Show / Hide Table of Contents

    Struct TrackPadTouch

    A touch event received from a magic trackpad.

    Inherited Members
    ValueType.Equals(Object)
    ValueType.GetHashCode()
    ValueType.ToString()
    Object.Equals(Object, Object)
    Object.ReferenceEquals(Object, Object)
    Object.GetType()
    Namespace: Unity.AppUI.Core
    Syntax
    public struct TrackPadTouch
    Remarks

    Theses Touch events can be received from a magic trackpad on macOS.

    Constructors

    TrackPadTouch(Int32, Vector2, Int32, Vector2, Single, TouchPhase)

    Constructor.

    Declaration
    public TrackPadTouch(int fingerId, Vector2 position, int tapCount, Vector2 deltaPos, float deltaTime, TouchPhase phase)
    Parameters
    Type Name Description
    Int32 fingerId

    The unique identifier of the touch.

    Vector2 position

    The position of the touch in normalized coordinates.

    Int32 tapCount

    The number of taps. This is always 1 for a trackpad.

    Vector2 deltaPos

    The delta position of the touch since the last frame.

    Single deltaTime

    The delta time since the last frame.

    TouchPhase phase

    The phase of the touch.

    Properties

    deltaPos

    The delta position of the touch since the last frame.

    Declaration
    public readonly Vector2 deltaPos { get; }
    Property Value
    Type Description
    Vector2

    deltaTime

    The delta time since the last frame.

    Declaration
    public readonly float deltaTime { get; }
    Property Value
    Type Description
    Single

    fingerId

    The unique identifier of the touch.

    Declaration
    public readonly int fingerId { get; }
    Property Value
    Type Description
    Int32

    phase

    The phase of the touch.

    Declaration
    public readonly TouchPhase phase { get; }
    Property Value
    Type Description
    TouchPhase

    position

    The position of the touch in normalized coordinates.

    Declaration
    public readonly Vector2 position { get; }
    Property Value
    Type Description
    Vector2

    tapCount

    The number of taps. This is always 1 for a trackpad.

    Declaration
    public readonly int tapCount { get; }
    Property Value
    Type Description
    Int32
    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