I am trying to change the behavior of one of my sliders to have a bipolar exponential skew. In other words, the slider should go from -value to +value, with the middle value at zero, and an exponential increase in the value as you go away from the mid value, with the sign added on as needed.
It is probably easier to explain this with some code. This calculates a bipolar exponential warping that goes from -maxValue to maxValue, with a bit of a “dead zone” around the center of the slider value:
else if (sliderValue<0.499f)
So, is there any way to do this with the existing Slider class, with some version of the Slew functions that I don’t know about? Or should I create my own subclass of the Slider class to perform this function?