Example #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;
        }
Example #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);
        }
Example #3
0
 public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained) {
     axisID = axis;
     challengeID = type;
     connecting = chained;
 }
Example #4
0
 public AxisAction(AbstractAxisInput axis, AxisChallengeType type, bool chained)
 {
     axisID      = axis;
     challengeID = type;
     connecting  = chained;
 }