C# Class Prime31.TKLTouch

Exibir arquivo Open project: prime31/TouchKit Class Usage Examples

Public Properties

Property Type Description
deltaPosition UnityEngine.Vector2
deltaTime float
fingerId int
phase TouchPhase
position UnityEngine.Vector2
tapCount int

Public Methods

Method Description
TKLTouch ( int fingerId ) : System.Collections
ToString ( ) : string
hasMouseInput ( ) : bool
populate ( ) : void

populates the TKLTouch with either mouse or touch input

populateFromMouse ( ) : TKLTouch
populateWithPosition ( Vector3 currentPosition, TouchPhase touchPhase ) : TKLTouch
populateWithTouch ( Touch touch ) : TKLTouch

Method Details

TKLTouch() public method

public TKLTouch ( int fingerId ) : System.Collections
fingerId int
return System.Collections

ToString() public method

public ToString ( ) : string
return string

hasMouseInput() public method

public hasMouseInput ( ) : bool
return bool

populate() public method

populates the TKLTouch with either mouse or touch input
public populate ( ) : void
return void

populateFromMouse() public method

public populateFromMouse ( ) : TKLTouch
return TKLTouch

populateWithPosition() public method

public populateWithPosition ( Vector3 currentPosition, TouchPhase touchPhase ) : TKLTouch
currentPosition UnityEngine.Vector3
touchPhase TouchPhase
return TKLTouch

populateWithTouch() public method

public populateWithTouch ( Touch touch ) : TKLTouch
touch UnityEngine.Touch
return TKLTouch

Property Details

deltaPosition public_oe property

public Vector2,UnityEngine deltaPosition
return UnityEngine.Vector2

deltaTime public_oe property

public float deltaTime
return float

fingerId public_oe property

public int fingerId
return int

phase public_oe property

public TouchPhase phase
return TouchPhase

position public_oe property

public Vector2,UnityEngine position
return UnityEngine.Vector2

tapCount public_oe property

public int tapCount
return int