예제 #1
0
        // Takes an bool
        public static bool Button(bool bttnState, ButtonChallengeType chalTyp) {
            bool rtnBool = false;

            switch (chalTyp) {
                case ButtonChallengeType.PRESSED:
                    rtnBool = (bttnState == true ? true : false);
                    break;
                case ButtonChallengeType.LETGO:
                    rtnBool = (bttnState == false ? true : false);
                    break;
            }

            return rtnBool;
        }
예제 #2
0
        // Takes an bool
        public static bool Button(bool bttnState, ButtonChallengeType chalTyp)
        {
            bool rtnBool = false;

            switch (chalTyp)
            {
            case ButtonChallengeType.PRESSED:
                rtnBool = (bttnState == true ? true : false);
                break;

            case ButtonChallengeType.LETGO:
                rtnBool = (bttnState == false ? true : false);
                break;
            }

            return(rtnBool);
        }
예제 #3
0
 public ButtonAction(AbstractButtonInput bt, ButtonChallengeType type, bool chained) {
     buttonID = bt;
     challengeID = type;
     connecting = chained;
 }
예제 #4
0
 public ButtonAction(AbstractButtonInput bt, ButtonChallengeType type, bool chained)
 {
     buttonID    = bt;
     challengeID = type;
     connecting  = chained;
 }