I have solution for Input.getAxisRaw for joysticks and steering wheels

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;}

It may be worth posting a little more info!

Of Course![quote=“jabuka, post:1, topic: 487351, username:jabuka”]
I have solution for Input.getAxisRaw for joysticks and steering wheels

anybody wants it and ready to pay low price? :face_with_spiral_eyes:
[/quote]

the Input is
X axis Horizontal
gravity:0, Dead: 0.01, Sensitivity: 0.1, type: Joystick Axis, Axis: X axis, Joy num: Joystick 1

Y axis Vertical
gravity:0, Dead: 0.01, Sensitivity: 0.1, type: Joystick Axis, Axis: Y axis, Joy num: Joystick 1