Exemplo n.º 1
0
        public float GetRawValue()
        {
            if (is_positive)
            {
                return(axis.GetRawValue().BindBetween(0.0f, 1.0f));
            }

            return(-axis.GetRawValue().BindBetween(-1.0f, 0.0f));
        }
Exemplo n.º 2
0
        public int GetRawValue()
        {
            if (axis.GetRawValue() >= threshold)
            {
                return(1);
            }

            if (axis.GetRawValue() <= -threshold)
            {
                return(-1);
            }

            return(0);
        }
Exemplo n.º 3
0
 public VectorF2 GetRawValue()
 {
     return(new VectorF2(
                horizontal_axis.GetRawValue(),
                vertical_axis.GetRawValue()
                ));
 }
        public bool GetRawValue()
        {
            if (is_positive)
            {
                if (axis.GetRawValue() >= threshold)
                {
                    return(true);
                }
            }
            else
            {
                if (axis.GetRawValue() <= -threshold)
                {
                    return(true);
                }
            }

            return(false);
        }
Exemplo n.º 5
0
 protected override void UpdateInternal()
 {
     value = axis.GetRawValue();
 }