Skip to content
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

Xbox Series wireless controller detected as two devices #69257

Closed
FarbrorMartin opened this issue Nov 27, 2022 · 11 comments · Fixed by #71784
Closed

Xbox Series wireless controller detected as two devices #69257

FarbrorMartin opened this issue Nov 27, 2022 · 11 comments · Fixed by #71784

Comments

@FarbrorMartin
Copy link

Godot version

3.5 RC4

System information

Windows 10, GLES3, Intel HD 620

Issue description

Xbox Wireless Controller gets detected as two controllers.

I detect connected controllers with Input, like so:
var joypads = Input.get_connected_joypads()
If I connect an Xbox Wireless controller i get two entries. One for an XInput Gamepad, and one for an Xbox Series Controller.
They both give input actions from the physical controller.

In a local multiplayer game this causes problems because one controller gets interpreted as two players, and thus the same physical controller controls two characters.

I have not hade this problem with my wired Xbox clone controller, my wireless 8Bitdo or my wired Xbox 360 clone controller.

Steps to reproduce

Connect an Xbox Wireless Controller (or maybe a wired, though I have not tested this).
Get a list of connected controllers using Input.get_connected_joypads()
See that the list contains two entries, instead of the expected one entry.

Minimal reproduction project

Xbox Controller detected twice.zip

@FarbrorMartin
Copy link
Author

I tested the same controller on the Gamepad Tester website, and it does not register as two devices there, but instead as a single "Xbox 360 Controller (XInput STANDARD GAMEPAD)"

@FarbrorMartin
Copy link
Author

Just tested on 4.0 beta 6 and the problem is the same.

@MicrotonalMatt
Copy link

I can confirm I'm having this issue in 4.0 beta 11

@Calinou
Copy link
Member

Calinou commented Jan 13, 2023

If I connect an Xbox Wireless controller i get two entries.

Are you using an USB adapter or Bluetooth for the wireless connection? Same question for @MicrotonalMatt 🙂

@Calinou Calinou changed the title Xbox Controller detected as two devices Xbox Series wireless controller detected as two devices Jan 13, 2023
@MicrotonalMatt
Copy link

The controller was connected to the computer via USB cable but was sending inputs via bluetooth. I just found that switching the usb port fixed the issue for me but I'm still not sure of the cause.

@Calinou
Copy link
Member

Calinou commented Jan 13, 2023

The controller was connected to the computer via USB cable but was sending inputs via bluetooth. I just found that switching the usb port fixed the issue for me but I'm still not sure of the cause.

This was likely the culprit. I'm not sure if we can do anything about it. How do other engines behave in this situation?

@FarbrorMartin Can you check whether you were had the controller connected via USB while using it via Bluetooth?

@FarbrorMartin
Copy link
Author

FarbrorMartin commented Jan 13, 2023 via email

@MicrotonalMatt
Copy link

I tested the controller with both usb ports on gampad-tester.com and both times it detected the controller as xinput with index 0.

@PrecisionRender
Copy link
Contributor

PrecisionRender commented Jan 20, 2023

I have the same issue in 4.0 beta 12, but only when the controller is in Bluetooth mode. Hooking up the controller with a USB-C cable fixes the issue for me. When wireless, it registers as XInput Gamepad and Xbox Series Controller. When connected via cable, it only registers as XInput Gamepad.

Edit: I tested in the gamepad tester website, and it detected it as a single controller. This seems like a Godot issue.

@PrecisionRender
Copy link
Contributor

Note: This seems like a duplicate of #41684.

@Calinou
Copy link
Member

Calinou commented Jan 20, 2023

Duplicate of #41684.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging a pull request may close this issue.

5 participants