I’m trying to create a custom processor that converts an axis from [0 to 1] to [-1 to 1].
public override float Process(float value, InputControl control)
{
return (2f * value) - 1f;
}
I currently have it mapped to a pedal and when I lift all the way off, the value goes to 0 instead of -1. I put some breakpoints in the code and I noticed that a breakpoint never gets hit in the Process() function when the value goes to 0.
For more context, I’m trying to have a single Action that can be mapped to either 1 pedal or 2 pedals. If one pedal it goes from -1 to 1. If two pedals, one pedal goes from 0 to 1, the other goes from 0 to -1 (Using a Custom Composite). This is to control the front wing (canard) on a hydroplane.