Search Unity

DualShock 4 gyroscope axes in Unity Linux

Discussion in 'Linux' started by Wulfara, Feb 8, 2020.

  1. Wulfara

    Wulfara

    Joined:
    Aug 11, 2015
    Posts:
    40
    Hello! I'm very interested in making Sony's DualShock 4 gyroscope work with Unity. So far I can see the gyro axes values working into some Linux joystick configuration tools through the ds4drv driver, but Unity does not see those axes at all. I think Unity ignores the ds4drv input because it not only loses the gyro axes but also numerates the other axes and buttons in different order (as in ds4drv right analog stick are axes 3 & 6 but in Unity they are 4 & 5).
    I also tried the Steam controllers configuration for desktop and managed to capture the accelerometer axes, but not the gyroscope's.
    Do you have any idea on how to make the DualShock 4 gyro work for Unity in Linux?
    Thank you in advance.
     
    Last edited: Feb 8, 2020