chrippa / ds4drv

A Sony DualShock 4 userspace driver for Linux
MIT License
1.05k stars 213 forks source link

Working gyro in Unity Editor 3D #174

Open clara2g opened 4 years ago

clara2g commented 4 years ago

Hello, First of all thanks for your driver :) I'm very interested in making gyro work with Unity Editor 3D, the game engine. So far I can see the gyro axis values working as expected into the KDE Plasma 5 built-in joystick configuration, but Unity does not see them at all. I think Unity somehow totally ignores the ds4drv input because it not only loses the gyro axes but also numerates the other axes in different order (as in ds4drv right analog stick are axes 3 & 6 and in Unity they are 4 & 5). Do you have any idea on how to make the gyro work for Unity? Thank you in advance.

albfan commented 2 years ago

I just google a bit: https://www.reddit.com/r/Unity3D/comments/1syswe/ps4_controller_map_for_unity/

https://docs.unity3d.com/Packages/com.unity.inputsystem@0.9/api/UnityEngine.InputSystem.DualShock.DualShock4GamepadHID.html

have no idea how that maps to ds4 axis