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

ControllerInterface: Combine evdev devices with the same physical location in addition to unique ID #8840

Merged
merged 1 commit into from Sep 20, 2020

Conversation

Techjar
Copy link
Contributor

@Techjar Techjar commented Jun 1, 2020

Some off-brand devices always report the same unique ID, resulting in them being wrongly combined. The physical location for these devices should always be different, making that a better comparison. I'm currently unsure whether the DS4's devices (the original target of the combining behavior in #8473) all have the same physical location, but theoretically they should.

@sclem
Copy link

sclem commented Jun 1, 2020

Pulled and tested, confirmed this fixes https://bugs.dolphin-emu.org/issues/12126

@Techjar
Copy link
Contributor Author

Techjar commented Jun 1, 2020

Great, now I just need someone to test the DS4 to make sure that still works as intended.

@sclem
Copy link

sclem commented Jun 1, 2020

Sounds good. I would test that if I had one.

@jordan-woyak
Copy link
Member

Unfortunately this breaks my Mayflash 4-port GameCube controller adapter.
All four ports have the same "physical location" and are incorrectly combined.

Perhaps you can examine BOTH the physical location and the unique ID?

@Techjar Techjar changed the title ControllerInterface: Combine evdev devices with the same physical location rather than unique ID ControllerInterface: Combine evdev devices with the same physical location in addition to unique ID Sep 8, 2020
@Techjar
Copy link
Contributor Author

Techjar commented Sep 8, 2020

@jordan-woyak That does appear to stop it combing the Mayflash adapter on my system. Can you confirm?

@Techjar Techjar marked this pull request as ready for review September 9, 2020 00:09
Copy link
Member

@jordan-woyak jordan-woyak left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM

@jordan-woyak jordan-woyak merged commit 50b5224 into dolphin-emu:master Sep 20, 2020
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
3 participants