Arguments for the accelerometer.
Наследование: System.EventArgs
Пример #1
0
        void OnReadingChanged(Sensor sender, AccelerometerReadingChangedEventArgs args)
        {
            var handler = changed;

            if (handler != null)
            {
                var value = ConvertToVector(args.Reading);
                var e     = new AccelerometerEventArgs(value);
                handler.Invoke(this, e);
            }
        }
Пример #2
0
        void OnReadingChanged(Sensor sender, AccelerometerReadingChangedEventArgs args)
        {
            var handler = changed;

            if (handler != null)
            {
                var value = ConvertToVector(args.Reading);
                var e = new AccelerometerEventArgs(value);
                handler.Invoke(this, e);
            }
        }