Click or drag to resize

GestureStateChangeEventArgsGetCachedEventArgs Method

Returns cached instance of EventArgs. This cached EventArgs is reused throughout the library not to alocate new ones on every call.

Namespace:  TouchScript.Gestures
Assembly:  Assembly-CSharp (in Assembly-CSharp.dll) Version: 0.0.0.0
Syntax
C#
public static GestureStateChangeEventArgs GetCachedEventArgs(
	GestureGestureState state,
	GestureGestureState previousState
)

Parameters

state
Type: TouchScript.GesturesGestureGestureState
Current gesture state.
previousState
Type: TouchScript.GesturesGestureGestureState
Previous gesture state.

Return Value

Type: GestureStateChangeEventArgs
Cached EventArgs object.
See Also