Inheritance
System.Object
TouchSimulation
public class TouchSimulation : MonoBehaviour, IInputStateChangeMonitor
Properties
Declaration
public static TouchSimulation instance { get; }
Property Value
Declaration
public Touchscreen simulatedTouchscreen { get; }
Property Value
Methods
Declaration
protected void AddPointer(Pointer pointer)
Parameters
Type |
Name |
Description |
Pointer |
pointer |
|
Declaration
public static void Destroy()
Declaration
public static void Disable()
Declaration
public static void Enable()
Declaration
protected void InstallStateChangeMonitors(int startIndex = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
startIndex |
|
Declaration
protected void OnDisable()
Declaration
protected void OnEnable()
Declaration
protected void OnSourceControlChangedValue(InputControl control, double time, InputEventPtr eventPtr, long sourceDeviceAndButtonIndex)
Parameters
Declaration
protected void RemovePointer(Pointer pointer)
Parameters
Type |
Name |
Description |
Pointer |
pointer |
|
Declaration
protected void UninstallStateChangeMonitors(int startIndex = 0)
Parameters
Type |
Name |
Description |
System.Int32 |
startIndex |
|
Explicit Interface Implementations
Declaration
void IInputStateChangeMonitor.NotifyControlStateChanged(InputControl control, double time, InputEventPtr eventPtr, long monitorIndex)
Parameters
Implements
Declaration
void IInputStateChangeMonitor.NotifyTimerExpired(InputControl control, double time, long monitorIndex, int timerIndex)
Parameters
Type |
Name |
Description |
InputControl |
control |
|
System.Double |
time |
|
System.Int64 |
monitorIndex |
|
System.Int32 |
timerIndex |
|
Implements