|
MeshBaker
|
The finger motion detector component is not an actual gesture but is responsible for tracking the motion (or stillness) of a specific finger More...
Inherits FGComponent.
Public Types | |
| enum | MotionState { MotionState.None, MotionState.Stationary, MotionState.Moving } |
| Motion state More... | |
Public Attributes | |
| float | MoveThreshold = 5.0f |
| Tolerance distance the finger is allowed to move from its initial position without being recognized as an actual motion More... | |
Protected Member Functions | |
| override void | OnUpdate (FingerGestures.IFingerList touches) |
| This is called after FingerGestures has updated the state of each finger More... | |
| void | RaiseOnMoveBegin () |
| void | RaiseOnMove () |
| void | RaiseOnMoveEnd () |
| void | RaiseOnStationaryBegin () |
| void | RaiseOnStationary () |
| void | RaiseOnStationaryEnd () |
Protected Member Functions inherited from FGComponent | |
| virtual void | Awake () |
| virtual void | Start () |
| virtual void | OnEnable () |
| virtual void | OnDisable () |
Properties | |
| virtual FingerGestures.Finger | Finger [get, set] |
| Get or set the finger to track More... | |
| MotionState | State [get] |
| Current finger motion state More... | |
| MotionState | PreviousState [get] |
| Finger motion state during the previous update More... | |
| int | Moves [get] |
| Number of moves performed A complete MoveBegin/Move/MoveEnd sequence counts for 1 move. More... | |
| bool | Moved [get] |
| Return true if at least one finger move was performed (see Moves property above) More... | |
| bool | WasMoving [get] |
| Return true if Moving was true during the previous update More... | |
| bool | Moving [get] |
| Is the finger currently moving this frame? More... | |
| float | ElapsedStationaryTime [get] |
| Amount of time spent during the last or current stationary state sequence from OnBeginStationary up to OnEndStationary. More... | |
| Vector2 | AnchorPos [get] |
| Reference position used to evaluate if we're still within the move threshold distance. More... | |
Events | |
| EventDelegate< FingerMotionDetector > | OnMoveBegin |
| Event fired when the finger started moving beyond the MoveThreshold. More... | |
| EventDelegate< FingerMotionDetector > | OnMove |
| Event fired when the finger has moved since last update. More... | |
| EventDelegate< FingerMotionDetector > | OnMoveEnd |
| Event fired when the finger has stopped moving More... | |
| EventDelegate< FingerMotionDetector > | OnStationaryBegin |
| Event fired when the finger starts being stationary (not moving) More... | |
| EventDelegate< FingerMotionDetector > | OnStationary |
| Event fired on each frame that the finger remains stationary. More... | |
| EventDelegate< FingerMotionDetector > | OnStationaryEnd |
| Event fired when the finger stops being stationary (starts moving) Use ElapsedStationaryTime to retreive the total amount of time the finger stayed stationary ElapsedStationaryTime More... | |
Additional Inherited Members | |
Public Member Functions inherited from FGComponent | |
| delegate void | EventDelegate< T > (T source) |
The finger motion detector component is not an actual gesture but is responsible for tracking the motion (or stillness) of a specific finger
|
strong |
|
protectedvirtual |
This is called after FingerGestures has updated the state of each finger
| touches | The list of fingers currently down / touching the screen |
Implements FGComponent.
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
|
protected |
| float FingerMotionDetector.MoveThreshold = 5.0f |
Tolerance distance the finger is allowed to move from its initial position without being recognized as an actual motion
|
get |
Reference position used to evaluate if we're still within the move threshold distance.
This is the last initial stationary position (initial finger contact position, or finger position during the last OnMoveEnd event)
|
get |
Amount of time spent during the last or current stationary state sequence from OnBeginStationary up to OnEndStationary.
|
getset |
Get or set the finger to track
|
get |
Return true if at least one finger move was performed (see Moves property above)
|
get |
Number of moves performed A complete MoveBegin/Move/MoveEnd sequence counts for 1 move.
|
get |
Is the finger currently moving this frame?
|
getprotected |
Finger motion state during the previous update
|
getprotected |
Current finger motion state
|
get |
Return true if Moving was true during the previous update
| EventDelegate<FingerMotionDetector> FingerMotionDetector.OnMove |
Event fired when the finger has moved since last update.
Use MoveDelta to retrieve the motion performed since last update MoveDelta
| EventDelegate<FingerMotionDetector> FingerMotionDetector.OnMoveBegin |
Event fired when the finger started moving beyond the MoveThreshold.
Use AnchorPos corresponds to retrieve the last starting position AnchorPos MoveThreshold
| EventDelegate<FingerMotionDetector> FingerMotionDetector.OnMoveEnd |
Event fired when the finger has stopped moving
| EventDelegate<FingerMotionDetector> FingerMotionDetector.OnStationary |
Event fired on each frame that the finger remains stationary.
Use ElapsedStationaryTime to retreive the amount of time elapsed since the finger started being stationary ElapsedStationaryTime
| EventDelegate<FingerMotionDetector> FingerMotionDetector.OnStationaryBegin |
Event fired when the finger starts being stationary (not moving)
| EventDelegate<FingerMotionDetector> FingerMotionDetector.OnStationaryEnd |
Event fired when the finger stops being stationary (starts moving) Use ElapsedStationaryTime to retreive the total amount of time the finger stayed stationary ElapsedStationaryTime
1.8.12