Exemple #1
1
        static void Main(string[] args)
        {
            Console.WriteLine("Sanity Check!");

            Sender _sender = new Sender();

            KeyboardInput _key = new KeyboardInput();

            EventListener _listener = new EventListener(_key);

            vec3 start = vec3.Zero;
            vec3 end = new vec3(110.0f, 100.0f, 10.0f);
            float vel = 1f;
            bool complete = false;

            while (!complete)
            {
                MoveVector3(out complete, ref start, end, vel, AXIS.X);
            }

            Console.WriteLine("########################################################################");
            Console.WriteLine("###########              STOPPED SIM                         ###########");
            Console.WriteLine("########################################################################");

            _key.Send();
        }
Exemple #2
1
 public void Detach()
 {
     m_sender.Changed -= new ChangedEventHandler(ReceiveSend);
     m_sender = null;
 }
Exemple #3
1
 public EventListener(Sender s)
 {
     m_sender = s;
     m_sender.Changed += new ChangedEventHandler(ReceiveSend);
 }