Click or drag to resize

InputSource Class

Base class for all pointer input sources.
Inheritance Hierarchy
SystemObject
  Object
    Component
      Behaviour
        MonoBehaviour
          TouchScript.InputSourcesInputSource
            TouchScript.InputSourcesStandardInput

Namespace:  TouchScript.InputSources
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public abstract class InputSource : MonoBehaviour, 
	IInputSource, INTERNAL_IInputSource

The InputSource type exposes the following members.

Constructors
  NameDescription
Protected methodInputSource
Initializes a new instance of the InputSource class
Top
Properties
  NameDescription
Public propertyCoordinatesRemapper
Gets or sets current remapper.
Top
Methods
  NameDescription
Protected methodaddPointer
Adds the pointer to the system.
Protected methodcancelPointer
Cancels the pointer.
Public methodCancelPointer
Cancels the pointer.
Public methodINTERNAL_DiscardPointer
Used by TouchManagerInstance to return a pointer to input source. DO NOT CALL IT DIRECTLY FROM YOUR CODE!
Protected methodOnDisable
Unity OnDestroy callback.
Protected methodOnEnable
Unity OnEnable callback.
Protected methodpressPointer
Mark the pointer as touching the surface.
Protected methodreleasePointer
Mark the pointer as no longer touching the surface.
Protected methodremapCoordinates
Remaps the coordinates using the CoordinatesRemapper if it is set.
Protected methodremovePointer
Removes the pointer.
Protected methodupdateCoordinatesRemapper
Called from CoordinatesRemapper setter to update touch handlers with the new value.
Public methodUpdateInput
This method is called by ITouchManager to synchronously update the input.
Protected methodupdatePointer
Mark pointer as updated.
Public methodUpdateResolution
Forces the input to update its state when resolution changes.
Top
See Also