Class Touchscreen | Unity Reflect | 1.0.0-preview.11
docs.unity3d.com
    Show / Hide Table of Contents

    Class Touchscreen

    Inheritance
    Object
    InputControlProvider
    InputDevice
    Pointer
    Touchscreen
    Inherited Members
    Pointer.position
    Pointer.pressure
    Pointer.cursor
    InputDevice.ProcessEvent(InputEvent)
    InputDevice.RemapEvent(InputEvent)
    InputDevice.connected
    InputDevice.profile
    InputDevice.tagIndex
    InputDevice.deviceName
    InputDevice.deviceIndex
    InputDevice.assignment
    InputDevice.ToString()
    InputControlProvider.controlDataList
    InputControlProvider.state
    InputControlProvider.active
    InputControlProvider.SetControls(List<InputControlData>)
    InputControlProvider.GetControlData(Int32)
    InputControlProvider.controlCount
    InputControlProvider.Item[Int32]
    InputControlProvider.Item[String]
    InputControlProvider.GetPrimarySourceName(Int32, String)
    InputControlProvider.SetControlNameOverride(Int32, String)
    InputControlProvider.lastEventTime
    Namespace: UnityEngine.InputNew
    Syntax
    public class Touchscreen : Pointer

    Constructors

    Touchscreen()

    Declaration
    public Touchscreen()

    Touchscreen(String, List<InputControlData>)

    Declaration
    protected Touchscreen(string deviceName, List<InputControlData> additionalControls)
    Parameters
    Type Name Description
    String deviceName
    List<InputControlData> additionalControls

    Fields

    MaxConcurrentTouches

    Declaration
    public const int MaxConcurrentTouches = 5
    Field Value
    Type Description
    Int32

    Properties

    current

    Declaration
    public static Touchscreen current { get; }
    Property Value
    Type Description
    Touchscreen

    touches

    Declaration
    public List<Touch> touches { get; }
    Property Value
    Type Description
    List<Touch>

    Methods

    ProcessEventIntoState(InputEvent, InputState)

    Declaration
    public override bool ProcessEventIntoState(InputEvent inputEvent, InputState intoState)
    Parameters
    Type Name Description
    InputEvent inputEvent
    InputState intoState
    Returns
    Type Description
    Boolean
    Overrides
    Pointer.ProcessEventIntoState(InputEvent, InputState)

    SendSimulatedPointerEvents(TouchEvent, Boolean)

    Declaration
    public void SendSimulatedPointerEvents(TouchEvent touchEvent, bool cursorLocked)
    Parameters
    Type Name Description
    TouchEvent touchEvent
    Boolean cursorLocked
    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