C# Class TouchScript.InputSources.InputHandlers.TouchHandler

Unity touch handling implementation which can be embedded and controlled from other (input) classes.
Inheritance: IDisposable
Afficher le fichier Open project: DRMold/HungryHungryTetris Class Usage Examples

Méthodes publiques

Méthode Description
CancelTouch ( TouchPoint touch, bool @return ) : bool
Dispose ( ) : void
TouchHandler ( Tags tags, Func beginTouch, Vector2>.Action moveTouch, Action endTouch, Action cancelTouch ) : System

Initializes a new instance of the TouchHandler class.

Update ( ) : void

Updates this instance.

Private Methods

Méthode Description
internalBeginTouch ( Vector2 position ) : TouchPoint
internalCancelTouch ( int id ) : void
internalEndTouch ( int id ) : void

Method Details

CancelTouch() public méthode

public CancelTouch ( TouchPoint touch, bool @return ) : bool
touch TouchPoint
@return bool
Résultat bool

Dispose() public méthode

public Dispose ( ) : void
Résultat void

TouchHandler() public méthode

Initializes a new instance of the TouchHandler class.
public TouchHandler ( Tags tags, Func beginTouch, Vector2>.Action moveTouch, Action endTouch, Action cancelTouch ) : System
tags Tags Tags to add to touches.
beginTouch Func A function called when a new touch is detected. As this function must accept a Vector2 position of the new touch and return an instance of .
moveTouch Vector2>.Action A function called when a touch is moved. As this function must accept an int id and a Vector2 position.
endTouch Action A function called when a touch is lifted off. As this function must accept an int id.
cancelTouch Action A function called when a touch is cancelled. As this function must accept an int id.
Résultat System

Update() public méthode

Updates this instance.
public Update ( ) : void
Résultat void