-
-
Notifications
You must be signed in to change notification settings - Fork 21.2k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PS4 controller connected makes a unusable duplicate index on Linux #50273
Comments
CC @madmiraal If you connect only one of the controllers directly, do you confirm that it still registers as both device 0 and 1? And does unplugging it unregister both devices 0 and 1? When a single controller is plugged in, do you have both |
Yes, when I connect the controller there is an instant when there is only one index, but the second index apears afterwards, when disconnected, the second index is last to desappear
No, if you mean the input settings, only the connected controllers are shown |
Related to if not a duplicate of #41933. |
Seems to be the case indeed. I closed the other one as this one has more details. |
Hello, Now, of course, the question is how to consider the motion controls device as not a joystick ? Well, it happened that the commit 8fe2ecf, found on themaster branch, fixes the problem. On the dev version, and thus the future version 4 of Godot, only device that have buttons AND analog axis are considered proper controller. Since motion control input device only have axis, they are rejected. There is also the commit b966ca6 that make Nintendo Joycon considered as proper controller, because they only have one thumbstick. I tested the first commit by cherry-picking it on to of the tag 3.5.1-stable to check and it works the way I expect. I don't know how you want to deal with update of version 3 of Godot but at least, I want to say that this problem is fixed on master branch. |
Feel free to open a pull request against the |
Ok, I made one picking both commits at #67414 |
For some reason in 4.0.2 the DualSense (PS5) gamepad is now detected as device 1, and its touchpad as device 0, no matter what I do. Just rechecked it in 4.0-beta17 and there it's the other way around, which seems more correct to me. |
Godot version
3.3.2.stable.official
System information
Garuda Linux, 5.12.12-zen1-1-zen, KDE Dragonized, PS4 Controller
Issue description
So I started a new project, then added a joystick detector
I have 2 PS4 controllers connected by cable to a usb 3.0 hub, to a usb 3.0, output:
I connected both controllers one after the other, and there is duplicate indexes? and if I connect them before starting the project:
I also tried using the duplicate index as player input, did not work.
Steps to reproduce
Nodes are:
Control
ViewportContainer
Viewport
Node2D (code)
Minimal reproduction project
No response
The text was updated successfully, but these errors were encountered: