コード例 #1
0
        private void PollThread()
        {
            Console.WriteLine("Waiting for LIRC button press...");
            string command;

            while (lirc.ErrorValue >= 0)
            {
                command = lirc.NextCommand();
                ctrl.DispatchAction(command);
            }
            Console.WriteLine("Lost connection to LIRC daemon.  FIXME: should try to reconnect");
        }
コード例 #2
0
        private void PollThread()
        {
            Log.Debug("Waiting for LIRC button press...");
            string command;

            while (lirc.ErrorValue >= 0)
            {
                command = lirc.NextCommand();
                ctrl.DispatchAction(command);
            }
            // FIXME: Should try to reconnect
            Log.Debug("Lost connection to LIRC daemon");
        }
コード例 #3
0
	public void Test1()
	{
		ActionMapper am = new ActionMapper(new MockController());
		am.DispatchAction("play");
	}