상속: System.Windows.Input.InputDevice
예제 #1
0
 public MotionTrackingEventArgs(MotionTrackingDevice device, int timestamp)
     : base(device, timestamp)
 {
 }
예제 #2
0
        internal void HandPointGenerator_PointCreated(object sender, HandPointEventArgs e)
        {
            if (Window == null)
                return;

            if (!Window.CheckAccess())
            {
                Window.Dispatcher.Invoke(new EventHandler<HandPointEventArgs>(HandPointGenerator_PointCreated), System.Windows.Threading.DispatcherPriority.Input, sender, e);
                return;
            }

            MotionTrackingDevice device = null;
            if (!deviceDictionary.Keys.Contains(e.Id))
            {
                device = new MotionTrackingDevice(Window, Screen);
                deviceDictionary.Add(e.Id, device);
            }

            if (device != null)
            {
                device.ReportMotionTrackingStarted(e);
            }
        }
        private bool NotifyTransition(bool? wasValid, MotionTrackingDevice device, bool isValid)
        {
            if (wasValid.HasValue &&
                wasValid != isValid)
            {
            }

            return isValid;
        }
예제 #4
0
        private bool NotifyTransition(bool? wasValid, MotionTrackingDevice device, bool isValid)
        {
            if (isValid)
                device.ShouldPromoteToTouch = true;

            if (wasValid.HasValue &&
                wasValid != isValid)
            {

            }

            return isValid;
        }