C# Класс UnityEngine.VR.WSA.Input.GestureRecognizer

Manager class with API for recognizing user gestures.

Наследование: IDisposable
Показать файл Открыть проект Примеры использования класса

Открытые методы

Метод Описание
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.

Приватные методы

Метод Описание
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

Описание методов

CancelGestures() публичный Метод

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

public CancelGestures ( ) : void
Результат void

Dispose() публичный Метод

Disposes the resources used by gesture recognizer.

public Dispose ( ) : void
Результат void

GestureRecognizer() публичный Метод

Create a GestureRecognizer.

public GestureRecognizer ( ) : System
Результат System

GetRecognizableGestures() публичный Метод

Retrieve a mask of the currently enabled gestures.

public GetRecognizableGestures ( ) : GestureSettings
Результат GestureSettings

IsCapturingGestures() публичный Метод

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

public IsCapturingGestures ( ) : bool
Результат bool

SetRecognizableGestures() публичный Метод

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.
Результат GestureSettings

StartCapturingGestures() публичный Метод

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

public StartCapturingGestures ( ) : void
Результат void

StopCapturingGestures() публичный Метод

Call to stop receiving gesture events on this recognizer.

public StopCapturingGestures ( ) : void
Результат void