Exemplo n.º 1
0
        static void SetAllStructToZero()
        {
            lcb = new List <controllerBools> ();

            controllerBools c1 = new controllerBools();

            c1.index = 1;
            c1.bLeftTriggerDownLastCheckGBD  = false;
            c1.bLeftTriggerDownLastCheckGBU  = false;
            c1.bRightTriggerDownLastCheckGBD = false;
            c1.bRightTriggerDownLastCheckGBU = false;
            lcb.Add(c1);

            controllerBools c2 = new controllerBools();

            c2.index = 2;
            c2.bLeftTriggerDownLastCheckGBD  = false;
            c2.bLeftTriggerDownLastCheckGBU  = false;
            c2.bRightTriggerDownLastCheckGBD = false;
            c2.bRightTriggerDownLastCheckGBU = false;
            lcb.Add(c2);

            controllerBools c3 = new controllerBools();

            c3.index = 3;
            c3.bLeftTriggerDownLastCheckGBD  = false;
            c3.bLeftTriggerDownLastCheckGBU  = false;
            c3.bRightTriggerDownLastCheckGBD = false;
            c3.bRightTriggerDownLastCheckGBU = false;
            lcb.Add(c3);

            controllerBools c4 = new controllerBools();

            c4.index = 4;
            c4.bLeftTriggerDownLastCheckGBD  = false;
            c4.bLeftTriggerDownLastCheckGBU  = false;
            c4.bRightTriggerDownLastCheckGBD = false;
            c4.bRightTriggerDownLastCheckGBU = false;
            lcb.Add(c4);
        }
Exemplo n.º 2
0
        static void SetAllStructToZero()
        {
            lcb = new List<controllerBools> ();

            controllerBools c1 = new controllerBools ();
            c1.index = 1;
            c1.bLeftTriggerDownLastCheckGBD = false;
            c1.bLeftTriggerDownLastCheckGBU = false;
            c1.bRightTriggerDownLastCheckGBD = false;
            c1.bRightTriggerDownLastCheckGBU = false;
            lcb.Add (c1);

            controllerBools c2 = new controllerBools ();
            c2.index = 2;
            c2.bLeftTriggerDownLastCheckGBD = false;
            c2.bLeftTriggerDownLastCheckGBU = false;
            c2.bRightTriggerDownLastCheckGBD = false;
            c2.bRightTriggerDownLastCheckGBU = false;
            lcb.Add (c2);

            controllerBools c3 = new controllerBools ();
            c3.index = 3;
            c3.bLeftTriggerDownLastCheckGBD = false;
            c3.bLeftTriggerDownLastCheckGBU = false;
            c3.bRightTriggerDownLastCheckGBD = false;
            c3.bRightTriggerDownLastCheckGBU = false;
            lcb.Add (c3);

            controllerBools c4 = new controllerBools ();
            c4.index = 4;
            c4.bLeftTriggerDownLastCheckGBD = false;
            c4.bLeftTriggerDownLastCheckGBU = false;
            c4.bRightTriggerDownLastCheckGBD = false;
            c4.bRightTriggerDownLastCheckGBU = false;
            lcb.Add (c4);
        }