static void Main(string[] args)
        {
            var win = new MrWindows();
            var k = win.Keyboard;

            Action hadouken = () => {
                k.Press(VirtualKey.Down).Wait(20);
                k.Press(VirtualKey.Right).Wait(20);
                k.Release(VirtualKey.Down);
                k.Press(VirtualKey.X).Wait(20);
                k.Release(VirtualKey.Right);
                k.Release(VirtualKey.X);
                Console.WriteLine("HADOUKEN!!!!!!!!!!!!!");
                Light.Blink();
            };

            var cam = Camera.Create();
            cam.LeftHand.Visible += (sender, eventArgs) => {
                Console.WriteLine("Ready");
            };
            var movement = Movement.Forward(cam.LeftHand, 8);
            movement.Completed += () => {
                hadouken.Invoke();
            };
            movement.Activate();

            cam.Start();
            Console.ReadLine();
        }
 static void Main(string[] args)
 {
     ICamera cam = Camera.Create();
     var win = new Dear.MrWindows();
     Command command = new Command(win, cam);
     Trigger trigger = new Trigger(cam, command);
     trigger
         .registerNext()
         .registerPrevious()
         .registerOpen();
     cam.Start();
     Console.ReadLine();
 }
Beispiel #3
0
 public Command(MrWindows win, ICamera cam)
 {
     this.win = win;
     this.cam = cam;
 }
Beispiel #4
0
 static void Main(string[] args) {
     var win = new MrWindows();
 }