TouchManagerInstance Class |
Namespace: TouchScript.Core
public sealed class TouchManagerInstance : DebuggableMonoBehaviour, ITouchManager
The TouchManagerInstance type exposes the following members.
| Name | Description | |
|---|---|---|
| TouchManagerInstance | Initializes a new instance of the TouchManagerInstance class |
| Name | Description | |
|---|---|---|
| DebugMode |
Gets or sets if this object should show its debug information.
(Inherited from DebuggableMonoBehaviour.) | |
| DisplayDevice |
Gets or sets current display device.
| |
| DotsPerCentimeter |
Gets number of pixels in a cm with current DPI.
| |
| DPI |
Gets current DPI.
| |
| Inputs |
Gets the list of IInputSource | |
| Instance |
Gets the instance of TouchManager singleton.
| |
| IsInsidePointerFrame |
Indicates that execution is currently inside a TouchScript Pointer Frame, i.e. before FrameFinished and after FrameStarted events.
| |
| Pointers |
Gets the list of pointers.
| |
| PointersCount |
Gets number of pointers in the system.
| |
| PressedPointers |
Gets the list of pressed pointers.
| |
| PressedPointersCount |
Gets the number of pressed pointer in the system.
| |
| ShouldCreateCameraLayer |
Indicates if TouchScript should create a StandardLayer for you if no layers present in a scene.
| |
| ShouldCreateStandardInput |
Gets or sets a value indicating whether a StandardInput should be created in scene if no inputs present.
|
| Name | Description | |
|---|---|---|
| AddInput |
Adds an input source.
| |
| CancelPointer(Int32) |
Cancels a pointer.
| |
| CancelPointer(Int32, Boolean) |
Cancels a pointer and returns it to the system of need.
| |
| RemoveInput |
Removes the input.
| |
| UpdateResolution |
Tells TouchScript to update internal state after a resolution change.
|
| Name | Description | |
|---|---|---|
| FrameFinished |
Occurs when a frame is finished. After all other events.
| |
| FrameStarted |
Occurs when a new frame is started before all other events.
| |
| PointersAdded |
Occurs when new hovering pointers are added.
| |
| PointersCancelled |
Occurs when pointers are cancelled.
| |
| PointersPressed |
Occurs when pointers touch the surface.
| |
| PointersReleased |
Occurs when pointers are released.
| |
| PointersRemoved |
Occurs when pointers are removed from the system.
| |
| PointersUpdated |
Occurs when pointers are updated.
|