Пример #1
0
 // Stop sending the tactile feedback and clear the current penDevice and hapticsController on PointerExit.
 // Stopping the feedback is important as it clears the tactile signal from the PenDevice's
 // SimpleHapticsController, ensuring that it has a clean state once it next enters range.
 private void MovableRect_Exited(object sender, PointerRoutedEventArgs e)
 {
     penDevice       = null;
     statusText.Text = "";
     if (hapticsController != null)
     {
         hapticsController.StopFeedback();
         hapticsController = null;
     }
 }
Пример #2
0
 public override void Cancel()
 {
     base.Cancel();
     controller?.StopFeedback();
 }