public static void Create(Window window)
 {
     if (!isInitialized)
     {
         instance      = new KinectCursorManager(window);
         isInitialized = true;
     }
 }
 public static void Create(Window window, KinectSensor sensor, FrameworkElement cursor)
 {
     if (!isInitialized)
     {
         instance      = new KinectCursorManager(window, sensor, cursor);
         isInitialized = true;
     }
 }
Beispiel #3
0
 public KinectButton()
 {
     if (!System.ComponentModel.DesignerProperties.GetIsInDesignMode(this))
     {
         KinectCursorManager.Create(Application.Current.MainWindow);
     }
     this.KinectCursorEnter += new KinectCursorEventHandler(OnKinectCursorEnter);
     this.KinectCursorLeave += new KinectCursorEventHandler(OnKinectCursorLeave);
     this.KinectCursorMove  += new KinectCursorEventHandler(OnKinectCursorMove);
 }