- Home /
Does unity support a 16 bits axis input?
I'm having problems getting a input from a virtual joystick using Input.GetAxis or Input.GetAxisRaw. Through the windows game controller properties I can see the axis raw data and it's a signed 16 bits value.
The following code outputs only "1":
float rawValue = Input.GetAxisRaw(AnalogPrefix + lookYawAnalogButton);
print(rawValue.ToString());
I don't know what's going on but I'm guessing unity is truncating 8 bits from the raw input before apply it's transformations. .I don't think there is any problem at the input manager configurations.
Does someone successfully used a 16 bits analog input?
Comment
What port is the controller connected to? Perhaps you could use just some third party library to get the data from the port and handle it manually?