/// <summary> /// Disables key poses and unregisters from the gesture subsystem. /// </summary> private void Cleanup() { #if PLATFORM_LUMIN if (MLDevice.GestureSubsystem != null) { MLDevice.GestureSubsystem.onTouchpadGestureChanged -= this.HandleOnTouchpadGestureChanged; MLDevice.UnregisterGestureSubsystem(); } #endif }
/// <summary> /// Disables key poses and unregisters from the gesture subsystem. /// </summary> private void Cleanup() { this.DisableAllKeyPoses(); if (MLDevice.GestureSubsystem != null) { MLDevice.GestureSubsystem.onKeyPoseGestureChanged -= this.HandleOnKeyPoseChanged; MLDevice.UnregisterGestureSubsystem(); } }