- Home /
Controller's data are not correct
I have a controller, gyroscope that return's X and Y. Windows see this controller as correct HID device and even in it's configuration window, shows correct position ( Vector2(0,0) at gyroscope center).
Unity also see this device as joystick using functions Input.GetAxis("HorizontalBoard") and Input.GetAxis("VerticalBoard") i can read my gyroscope X and Y... but they are different than in windows configurator. In Unity my gyroscope center is at Vector2(-1,-1) position, which should by achieved at max gyro swing and Vector2(0,0) position is present at half of the way to gyro max swing. It's looks like center in Unity is shifted by half of max swing.This is my configuration of this device in InputManager:
My questions are: 1. If Windows device configuration shows correct position, why in Unity it is different? 2. In Unity, does Input axis can be configured to offset value?
Your answer
Follow this Question
Related Questions
Problems with joystick / controller axes being 1/-1 "way too often" 1 Answer
How do you properly deal with analog joystick input on multiple controller inputs? 1 Answer
Using Input.GetJoystickNames 1 Answer
Implementing a virtual joystick with mouse 1 Answer
Why does pressing joystick button 0 also trigger joystick button 1? 1 Answer