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");
        }
        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");
        }
	public void Test1()
	{
		ActionMapper am = new ActionMapper(new MockController());
		am.DispatchAction("play");
	}