Beispiel #1
0
 public void Init(Core core)
 {
     mCore           = core;
     config          = new KinectDisableConfig();
     Key             = config.DisableKey;
     log             = LogManager.GetLogger("KinectDisable");
     hotkey          = new Hotkey();
     hotkey.KeyCode  = Key;
     hotkey.Pressed += new HandledEventHandler(hostkey_keypressed);
     if (mCore.HasPlugin <KinectMovementPlugin>())
     {
         mInput = mCore.GetPlugin <KinectMovementPlugin>();
     }
     if (mCore.HasPlugin <SimpleKinectCursor>())
     {
         mCursor = mCore.GetPlugin <SimpleKinectCursor>();
     }
 }
 public void Init(Core core)
 {
     mCore = core;
     config = new KinectDisableConfig();
     Key = config.DisableKey;
     log = LogManager.GetLogger("KinectDisable");
     hotkey = new Hotkey();
     hotkey.KeyCode = Key;
     hotkey.Pressed += new HandledEventHandler(hostkey_keypressed);
     if(mCore.HasPlugin<KinectMovementPlugin>())
         mInput = mCore.GetPlugin<KinectMovementPlugin>();
     if(mCore.HasPlugin<SimpleKinectCursor>())
         mCursor = mCore.GetPlugin<SimpleKinectCursor>();
 }