MeshBaker
Public Member Functions | Properties | Events | List of all members
FingerGestures.Finger Class Reference

Finger More...

Public Member Functions

delegate void FingerEventDelegate (Finger finger)
 Delegate for OnDown & OnUp More...
 
 Finger (int index)
 
override string ToString ()
 

Properties

int Index [get]
 Unique identifier for this finger. More...
 
FingerPhase Phase [get]
 Current phase More...
 
bool IsDown [get]
 Return true if the finger is currently down More...
 
bool WasDown [get]
 Return true if the finger was down during the previous update/frame More...
 
float StarTime [get]
 Get the time of first screen contact More...
 
Vector2 StartPosition [get]
 Get the position of first screen contact More...
 
Vector2 Position [get]
 Get the current position More...
 
Vector2 PreviousPosition [get]
 Get the position during the previous frame More...
 
Vector2 DeltaPosition [get]
 Get the difference between previous and current position More...
 
float DistanceFromStart [get]
 Get the distance traveled from initial position More...
 

Events

FingerEventDelegate OnDown
 Event fired on the first frame the finger is down More...
 
FingerEventDelegate OnUp
 Event fired when the finger, previously down, has just been released. More...
 

Detailed Description

Finger

This provides an abstraction for a finger that can touch and move around the screen. As opposed to Unity's Touch object, a Finger exists independently of whether it is currently touching the screen or not

Constructor & Destructor Documentation

§ Finger()

FingerGestures.Finger.Finger ( int  index)

Member Function Documentation

§ FingerEventDelegate()

delegate void FingerGestures.Finger.FingerEventDelegate ( Finger  finger)

Delegate for OnDown & OnUp

Parameters
fingerthe finger firing the event

§ ToString()

override string FingerGestures.Finger.ToString ( )

Property Documentation

§ DeltaPosition

Vector2 FingerGestures.Finger.DeltaPosition
get

Get the difference between previous and current position

§ DistanceFromStart

float FingerGestures.Finger.DistanceFromStart
get

Get the distance traveled from initial position

§ Index

int FingerGestures.Finger.Index
get

Unique identifier for this finger.

For touch screen gestures, this corresponds to Touch.index, and the button index for mouse gestures.

§ IsDown

bool FingerGestures.Finger.IsDown
get

Return true if the finger is currently down

§ Phase

FingerPhase FingerGestures.Finger.Phase
get

Current phase

§ Position

Vector2 FingerGestures.Finger.Position
get

Get the current position

§ PreviousPosition

Vector2 FingerGestures.Finger.PreviousPosition
get

Get the position during the previous frame

§ StarTime

float FingerGestures.Finger.StarTime
get

Get the time of first screen contact

§ StartPosition

Vector2 FingerGestures.Finger.StartPosition
get

Get the position of first screen contact

§ WasDown

bool FingerGestures.Finger.WasDown
get

Return true if the finger was down during the previous update/frame

Event Documentation

§ OnDown

FingerEventDelegate FingerGestures.Finger.OnDown

Event fired on the first frame the finger is down

§ OnUp

FingerEventDelegate FingerGestures.Finger.OnUp

Event fired when the finger, previously down, has just been released.

e.g. this would be the equivalent of a "mouse up" button event.


The documentation for this class was generated from the following file: