public MotionTrackingEventArgs(MotionTrackingDevice device, int timestamp) : base(device, timestamp) { }
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; }
private bool NotifyTransition(bool? wasValid, MotionTrackingDevice device, bool isValid) { if (isValid) device.ShouldPromoteToTouch = true; if (wasValid.HasValue && wasValid != isValid) { } return isValid; }