Esempio n. 1
0
        public static bool Axis(float axisState, AxisChallengeType chalTyp) {
            bool rtnBool = false;

            switch (chalTyp) {
                case AxisChallengeType.POS:
                    rtnBool = (axisState > .1f ? true : false);
                    break;
                case AxisChallengeType.NEG:
                    rtnBool = (axisState < -.1f ? true : false);
                    break;
            }

            return rtnBool;
        }
Esempio n. 2
0
        public static bool Axis(float axisState, AxisChallengeType chalTyp)
        {
            bool rtnBool = false;

            switch (chalTyp)
            {
            case AxisChallengeType.POS:
                rtnBool = (axisState > .1f ? true : false);
                break;

            case AxisChallengeType.NEG:
                rtnBool = (axisState < -.1f ? true : false);
                break;
            }

            return(rtnBool);
        }
Esempio n. 3
0
 public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained) {
     axisID = axis;
     challengeID = type;
     connecting = chained;
 }
Esempio n. 4
0
 public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained)
 {
     axisID      = axis;
     challengeID = type;
     connecting  = chained;
 }