Esempio n. 1
0
 private float MapToRange(float value)
 {
     if (IsNegativeToPositive)
     {
         return(0.5f + (value / 2f));
     }
     else
     {
         return(RelativeInputEvent.WithinPositiveRange(value));
     }
 }
Esempio n. 2
0
        public override Vector3 GetPointFromRelativeInput(float relativeInput)
        {
            float internalRelative;

            if (_FullRange)
            {
                internalRelative = RelativeInputEvent.WithinFullRange(relativeInput);
            }
            else
            {
                internalRelative = RelativeInputEvent.WithinPositiveRange(relativeInput);
            }
            return(DeterminePointInSpaceFromRelativeInput(internalRelative));
        }