public CappedAxisInput(InputProperties p, ushort axisMax, float sensitivity, bool reset)
     : base(p, reset)
 {
     this.axisMax = axisMax;
     this.axisMin = -1 * axisMax;
     this.sensitivity = sensitivity;
 }
        public NormalizedAxisInput(InputProperties p, ushort r, ushort deadband, bool inverted, bool reset)
            : base(p, reset)
        {
            int sr = r;
            pRange = sr;
            nRange = sr * -1;
            this.inverted = inverted;
            this.deadband = deadband;

            if (properties.Information.Aspect == ObjectAspect.Position)
            {
                rawRange = Math.Abs(p.Properties.Range.Maximum - p.Properties.Range.Minimum);
                rawOffset = p.Properties.Range.Minimum;
            }
        }
Example #3
0
 public ButtonInput(InputProperties p, bool inverted)
     : base(p, false)
 {
     this.inverted = inverted;
 }
 public AxisTwoButtonInput(InputProperties positiveProp, InputProperties negativeProp, ushort axisValue)
 {
     toSet = axisValue;
     positive = new ButtonInput(positiveProp, false);
     negative = new ButtonInput(negativeProp, false);
 }