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

Manager class with API for recognizing user gestures.

Inheritance: IDisposable
Afficher le fichier Open project: CarlosHBC/UnityDecompiled Class Usage Examples

Méthodes publiques

Méthode 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

Méthode 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 méthode

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

public CancelGestures ( ) : void
Résultat void

Dispose() public méthode

Disposes the resources used by gesture recognizer.

public Dispose ( ) : void
Résultat void

GestureRecognizer() public méthode

Create a GestureRecognizer.

public GestureRecognizer ( ) : System
Résultat System

GetRecognizableGestures() public méthode

Retrieve a mask of the currently enabled gestures.

public GetRecognizableGestures ( ) : GestureSettings
Résultat GestureSettings

IsCapturingGestures() public méthode

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

public IsCapturingGestures ( ) : bool
Résultat bool

SetRecognizableGestures() public méthode

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.
Résultat GestureSettings

StartCapturingGestures() public méthode

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

public StartCapturingGestures ( ) : void
Résultat void

StopCapturingGestures() public méthode

Call to stop receiving gesture events on this recognizer.

public StopCapturingGestures ( ) : void
Résultat void