C# Class UnityEngine.VR.WSA.Input.GestureRecognizer

Manager class with API for recognizing user gestures.

Inheritance: IDisposable
Mostrar archivo Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Public Methods

Method Description
CancelGestures ( ) : void

Cancels any pending gesture events. Additionally this will call StopCapturingGestures.

Dispose ( ) : void

Disposes the resources used by gesture recognizer.

GestureRecognizer ( ) : System

Create a GestureRecognizer.

GetRecognizableGestures ( ) : GestureSettings

Retrieve a mask of the currently enabled gestures.

IsCapturingGestures ( ) : bool

Used to query if the GestureRecognizer is currently receiving Gesture events.

SetRecognizableGestures ( GestureSettings newMaskValue ) : GestureSettings

Set the recognizable gestures to the ones specified in newMaskValues and return the old settings.

StartCapturingGestures ( ) : void

Call to begin receiving gesture events on this recognizer. No events will be received until this method is called.

StopCapturingGestures ( ) : void

Call to stop receiving gesture events on this recognizer.

Private Methods

Method Description
Destroy ( IntPtr recognizer ) : void
DestroyThreaded ( IntPtr recognizer ) : void
INTERNAL_CALL_Internal_Create ( GestureRecognizer self, IntPtr &value ) : void
Internal_CancelGestures ( IntPtr recognizer ) : void
Internal_Create ( ) : IntPtr
Internal_GetRecognizableGestures ( IntPtr recognizer ) : int
Internal_IsCapturingGestures ( IntPtr recognizer ) : bool
Internal_SetRecognizableGestures ( IntPtr recognizer, int newMaskValue ) : int
Internal_StartCapturingGestures ( IntPtr recognizer ) : void
Internal_StopCapturingGestures ( IntPtr recognizer ) : void
InvokeErrorEvent ( string error, int hresult ) : void
InvokeHoldEvent ( GestureEventType eventType, InteractionSourceKind source, Ray headRay ) : void
InvokeManipulationEvent ( GestureEventType eventType, InteractionSourceKind source, Vector3 position, Ray headRay ) : void
InvokeNavigationEvent ( GestureEventType eventType, InteractionSourceKind source, Vector3 relativePosition, Ray headRay ) : void
InvokeRecognitionEvent ( GestureEventType eventType, InteractionSourceKind source, Ray headRay ) : void
InvokeTapEvent ( InteractionSourceKind source, Ray headRay, int tapCount ) : void

Method Details

CancelGestures() public method

Cancels any pending gesture events. Additionally this will call StopCapturingGestures.

public CancelGestures ( ) : void
return void

Dispose() public method

Disposes the resources used by gesture recognizer.

public Dispose ( ) : void
return void

GestureRecognizer() public method

Create a GestureRecognizer.

public GestureRecognizer ( ) : System
return System

GetRecognizableGestures() public method

Retrieve a mask of the currently enabled gestures.

public GetRecognizableGestures ( ) : GestureSettings
return GestureSettings

IsCapturingGestures() public method

Used to query if the GestureRecognizer is currently receiving Gesture events.

public IsCapturingGestures ( ) : bool
return bool

SetRecognizableGestures() public method

Set the recognizable gestures to the ones specified in newMaskValues and return the old settings.

public SetRecognizableGestures ( GestureSettings newMaskValue ) : GestureSettings
newMaskValue GestureSettings A mask indicating which gestures are now recognizable.
return GestureSettings

StartCapturingGestures() public method

Call to begin receiving gesture events on this recognizer. No events will be received until this method is called.

public StartCapturingGestures ( ) : void
return void

StopCapturingGestures() public method

Call to stop receiving gesture events on this recognizer.

public StopCapturingGestures ( ) : void
return void