Exemplo n.º 1
0
        public static void Main(string[] args)
        {
            // Initialize the controller
            SBC.SteelBattalionController controller = new SBC.SteelBattalionController();
            controller.Init(50);

            // Uncomment if you want to monitor the raw data coming out of the controller
            //controller.RawData += new SBC.SteelBattalionController.RawDataDelegate(controller_RawData);
            //set all buttons by default to light up only when you press them down
            // Add the event handler to monitor button state changed events
            controller.ButtonStateChanged += new SBC.SteelBattalionController.ButtonStateChangedDelegate(controller_ButtonStateChanged);

            // Run in an infinite loop
            while (1 == 1)
            {
                System.Threading.Thread.Sleep(20);



                Console.WriteLine(controller.TunerDial.ToString() + " " +
                                  controller.RotationLever.ToString() + " " + controller.SightChangeX.ToString() + " " + controller.SightChangeY.ToString() + " " +
                                  controller.AimingX.ToString() + " " + controller.AimingY.ToString() + " " +
                                  controller.LeftPedal.ToString() + " " + controller.MiddlePedal.ToString() + " " + controller.RightPedal.ToString());
                //Console.WriteLine(controller.GetBinaryBuffer(19, 20));

                //Console.WriteLine(((int)unchecked((sbyte)controller.rawControlData[9])).ToString());
            }
        }
Exemplo n.º 2
0
        public static void Main(string[] args)
        {
            // Initialize the controller
            SBC.SteelBattalionController controller = new SBC.SteelBattalionController();
            controller.Init(50);

            // Uncomment if you want to monitor the raw data coming out of the controller
            //controller.RawData += new SBC.SteelBattalionController.RawDataDelegate(controller_RawData);

            // Add the event handler to monitor button state changed events
            controller.ButtonStateChanged += new SBC.SteelBattalionController.ButtonStateChangedDelegate(controller_ButtonStateChanged);

            // Run in an infinite loop
            while (1 == 1)
            {
                System.Threading.Thread.Sleep(10);
            }
        }
Exemplo n.º 3
0
 public ModularMetalGear(SBC.SteelBattalionController Contr, Midi.MidiJane Jane)
 {
     CUEA       = false;
     EQ2ACTIVE  = false;
     CATCHING   = false;
     COMMSTATES = new bool[5] {
         false, false, false, false, false
     };
     EQONE = new bool[3] {
         false, false, false
     };
     EQTWO = new bool[3] {
         false, false, false
     };
     LOCKEDON       = false;
     LAUNCH         = false;
     gear           = Contr.GearLever;
     lastgearpolled = gear;
     LEFTMUTE       = false;
     RIGHTMUTE      = false;
     EQ1ACTIVE      = false;
     CUEB           = false;
     EQB            = false;
     EQZERO1        = false;
     EQZERO2        = false;
     TEMPODECREASE  = false;
     TEMPOINCREASE  = false;
     BLUEDUALCHOP   = false;
     BLUEEQ         = false;
     BLOCKTRIPS     = false;
     CHOPMODE       = false;
     Controller     = Contr;
     JANEBRIDGE     = Jane;
     Controller.Init(50);
     handler(Controller);
 }