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