Пример #1
0
        public static bool WndProc(ref Message msg, out Action action, out char key, out Keys keyCode)
        {
            action  = null;
            key     = (char)0;
            keyCode = Keys.A;

            if (CentareaRemote.WndProc(ref msg))
            {
                return(true);
            }

            if (HidListener.WndProc(ref msg, out action, out key, out keyCode))
            {
                return(true);
            }

            if (HCWRemote.WndProc(msg))
            {
                return(true);
            }

            if (FireDTVRemote.WndProc(ref msg, out action, out key, out keyCode))
            {
                return(true);
            }

            if (MCE2005Remote.WndProc(msg))
            {
                return(true);
            }

            return(false);
        }
Пример #2
0
 public static void Init()
 {
     if (_initialized)
     {
         Log.Info("Remotes: Init was called before Stop - stopping devices now");
         Stop();
     }
     _initialized = true;
     //diRemote.Init(); // Disable DirectX Input (not compatible with NET4 and later)
     X10Remote.Init();
     CentareaRemote.Init();
     HidListener.Init(GUIGraphicsContext.ActiveForm);
     MCE2005Remote.Init(GUIGraphicsContext.ActiveForm);
     FireDTVRemote.Init(GUIGraphicsContext.ActiveForm);
     HCWRemote.Init(GUIGraphicsContext.ActiveForm);
     IrTrans.Init(GUIGraphicsContext.ActiveForm);
 }
Пример #3
0
 public static void Init()
 {
     if (_initialized)
     {
         Log.Info("Remotes: Init was called before Stop - stopping devices now");
         Stop();
     }
     _initialized = true;
     diRemote.Init();
     X10Remote.Init();
     CentareaRemote.Init();
     HidListener.Init(GUIGraphicsContext.ActiveForm);
     MCE2005Remote.Init(GUIGraphicsContext.ActiveForm);
     FireDTVRemote.Init(GUIGraphicsContext.ActiveForm);
     HCWRemote.Init(GUIGraphicsContext.ActiveForm);
     IrTrans.Init(GUIGraphicsContext.ActiveForm);
 }
Пример #4
0
        public static void Stop()
        {
            if (!_initialized)
            {
                Log.Info("Remotes: Stop was called without Init - exiting");
                return;
            }

            HidListener.DeInit();
            MCE2005Remote.DeInit();
            FireDTVRemote.DeInit();
            CentareaRemote.DeInit();
            HCWRemote.DeInit();
            IrTrans.DeInit();
            //diRemote.Stop(); // Disable DirectX Input (not compatible with NET4 and later)

            _initialized = false;
        }
Пример #5
0
        public static void Stop()
        {
            if (!_initialized)
            {
                Log.Info("Remotes: Stop was called without Init - exiting");
                return;
            }

            HidListener.DeInit();
            MCE2005Remote.DeInit();
            FireDTVRemote.DeInit();
            CentareaRemote.DeInit();
            HCWRemote.DeInit();
            IrTrans.DeInit();
            diRemote.Stop();

            _initialized = false;
        }