Пример #1
0
 private void FlyoutSettings_OnIsOpenChanged(object sender, RoutedEventArgs e)
 {
     if (FlyoutSettings.IsOpen)
     {
         JoystickControl.Listen();
     }
     else
     {
         JoystickControl.StopListening();
     }
 }
Пример #2
0
 private void BtnQuit(object sender, RoutedEventArgs e)
 {
     JoystickControl.StopListening();
     SafeExit();
 }
Пример #3
0
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     JoystickControl.StopListening();
     SafeExit();
 }
Пример #4
0
 private void MainWindow_OnClosing(object sender, CancelEventArgs e)
 {
     JoystickControl.StopListening();
     Application.Current.Shutdown(0);
 }