/*void startAccelerometer()
         * {
         *  if (accelerometer == null)
         *  {
         *      // Instantiate the Accelerometer.
         *      accelerometer = new Accelerometer();
         *      //time between updates
         *      //    accelerometer.TimeBetweenUpdates = TimeSpan.FromSeconds(2);
         *      accelerometer.CurrentValueChanged +=
         *          new EventHandler<SensorReadingEventArgs<AccelerometerReading>>(accelerometer_CurrentValueChanged);
         *
         *      try
         *      {
         *
         *          accelerometer.Start();
         *          Debug.writeToIO("Accelerometer started");
         *      }
         *      catch (InvalidOperationException exception)
         *      {
         *          Debug.writeToIO( exception.Message);
         *      }
         *  }
         *  else
         *      accelerometer.Start();
         * }*/

        void onGesture_Event(object sender, CustomEventArgs e)
        {
            Dispatcher.BeginInvoke(() => updateCircles2(e.Gesture));
        }
Example #2
0
 void onMultiGestures_Event(object sender, CustomEventArgs e)
 {
     Dispatcher.BeginInvoke(() => performAction(e.Gesture));
     //updateCircles2(e.Gesture));
 }