Example #1
0
 public override void Cleanup()
 {
     MotionControllerService.Stop();
     Messenger.Default.Send(new RemoveMotionControllerMessage(_motionController));
     SimpleIoc.Default.Unregister<MotionControllerViewModel>(_motionController.Serial);
     base.Cleanup();
 }
Example #2
0
 public void DoToggleConnection(bool enabled)
 {
     if (enabled)
     {
         if (MotionController.ConnectStatus == PSMoveConnectStatus.OK)
         {
             MotionControllerService.Start();
             DoSelectColor(Palette);
         }
     }
     else
     {
         MotionControllerService.Stop();
     }
 }