I have solution for Input.getAxisRaw for joysticks and steering wheels
I am writing unfinished version here. but it works. I need you to test it if you ahve any racing wheel /pedals and give results and maybe improve it. thanks
…accel=Input.GetAxisRaw(“Y axis”);
turning=Input.GetAxisRaw(“X axis”);
// Turning steering wheel
if(turning> (-0.09f)&turning< 0.09f)
{left=0;
right=turning/0.164f;
right= Mathf.InverseLerp(-1, 1, right);
}
else{right=0;}
if(turning> 0.10f&turning< 0.28f)
{right=0;left=-turning/0.38f;
left=Mathf.InverseLerp(-1, 0, left);
left=-left;
}
else{left=0;}
// Accelerate and brake
if(accel> (-0.09f)&accel< 0.09f)
{up=0;
down=accel/0.164f;
down= Mathf.InverseLerp(-1, 1, down);
}
else{down=0;}
if(accel> 0.091f&accel< 0.29f)
{down=0;up=-accel/0.38f;
up=Mathf.InverseLerp(-1, 0, up);
up=-up;
}
else{up=0;}