-
-
Notifications
You must be signed in to change notification settings - Fork 18.7k
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
Gamepad being reported twice on Linux #90795
Comments
Could you try with [4.2.(https://github.com/godotengine/godot-builds/releases/tag/4.2.2-stable)? |
Same exact output in 4.2 |
See also (for 3.x): |
So is it treating the Gyroscope like a second input device on Linux? |
No clue if it's the same issue, could be as it's using the same library AFAIK, at least the same basic systems |
Looking in my KDE settings that looks like the case |
So that'd make it likely a driver side issue, but we could fix the false reporting by somehow filtering out dummy devices, but the reported device is on the OS side |
Yeah so that's a chat with the Linux devs problem then |
Does the gyroscope work on the first copy? Otherwise this would be a bit harder to fix |
In KDE yes but I don't know how to test that in Godot |
Output from dmseg [ 2754.376216] playstation 0003:054C:0CE6.0013: hidraw7: USB HID v1.11 Gamepad [Sony Interactive Entertainment DualSense Wireless Controller] on usb-0000:25:00.3-1/input3 |
Ah yes sorry that isn't supported for controllers at the moment, only the built in one in phones, then not a problem (presently) |
Output from dmseg just from plugging in the PS5 Controller [ 2929.965929] usb 5-1: new high-speed USB device number 6 using xhci_hcd |
Output from dmseg just from plugging in the PS4 Controller [ 3438.089126] usb 9-3.4: new full-speed USB device number 13 using xhci_hcd |
This problem was fixed in this Pull Request [52eff38] Output |
Tested versions
System information
Gentoo Linux - Godot v4.2.1.stable
Issue description
Wean on Linux Gamepads are beeing reported twice in all cases this behavior is not present on Windows this messes up gamepad detection on cross platform code bases in my case I have one PS4 and one PS5 controller plugged in via USB this also occurs with two PS5 controllers
Output on Gentoo Linux
Gamepad 0 = PS5 Controller
Gamepad 1 = PS5 Controller
Gamepad 2 = PS4 Controller
Gamepad 3 = PS4 Controller
Gamepad 4 =
Gamepad 5 =
Output on Windows
Gamepad 0 = PS5 Controller
Gamepad 1 = PS4 Controller
Gamepad 2 =
Gamepad 3 =
Gamepad 4 =
Gamepad 5 =
Steps to reproduce
Step - 1
Plugin any 2 Gamepads I have tested PS4 and PS5 controllers they both do the same thing
Step - 2
Add the following code to your GDScript this will print the names of your first 5 joypad devices
print("Gamepad 0 = " + Input.get_joy_name(0))
print("Gamepad 1 = " + Input.get_joy_name(1))
print("Gamepad 2 = " + Input.get_joy_name(2))
print("Gamepad 3 = " + Input.get_joy_name(3))
print("Gamepad 4 = " + Input.get_joy_name(4))
print("Gamepad 5 = " + Input.get_joy_name(5))
Minimal reproduction project (MRP)
Linux_Gamepad_Bug.tar.gz
The text was updated successfully, but these errors were encountered: