public void ApplyDeadZone(double dead)
        {
            var res = Numerics.DeadZoneCalculation(X, Y, dead);

            X = res.x;
            Y = res.y;

            res       = Numerics.DeadZoneCalculation(RotationZ, 0, dead);
            RotationZ = res.x;
        }
Exemplo n.º 2
0
        public void ApplyDeadZone(double dead)
        {
            var left  = Numerics.DeadZoneCalculation(LeftThumbX, LeftThumbY, dead);
            var right = Numerics.DeadZoneCalculation(RightThumbX, RightThumbY, dead);

            LeftThumbX = Math.Round(left.x, 3);
            LeftThumbY = left.y;

            RightThumbX = right.x;
            RightThumbY = right.y;
        }