Xbox Wireless Controller has X/Y swapped under Linux (evdev)
Categories
(Core :: DOM: Device Interfaces, defect)
Tracking
()
| Tracking | Status | |
|---|---|---|
| firefox151 | --- | fixed |
People
(Reporter: jrmuizel, Assigned: lepko, NeedInfo)
References
(Blocks 1 open bug)
Details
(Keywords: webcompat:platform-bug)
User Story
user-impact-score:400
Attachments
(2 files)
|
2.34 KB,
patch
|
Details | Diff | Splinter Review | |
|
48 bytes,
text/x-phabricator-request
|
Details | Review |
Looks like the same problem as bug 2000789
The IsXpadDevice detection won't work for a bluetooth connected controller.
| Reporter | ||
Updated•2 months ago
|
Comment 1•2 months ago
|
||
Comment 2•2 months ago
|
||
Sadly it's a bit difficult to find information on how to do this properly and I only have a fake wired X-Box controller. Can you try out the patch?
| Reporter | ||
Comment 3•2 months ago
|
||
What if we just switched to mapping the buttons numerically like Chrome does instead of trying to work around the weird mapping?
| Reporter | ||
Updated•2 months ago
|
Updated•2 months ago
|
Updated•2 months ago
|
| Reporter | ||
Comment 4•2 months ago
|
||
Actually, it seems like Chrome detects the kind of gamepad and maps the buttons appropriately:
https://source.chromium.org/chromium/chromium/src/+/main:device/gamepad/gamepad_standard_mappings_linux.cc;bpv=1;bpt=1
| Assignee | ||
Comment 5•2 months ago
|
||
(In reply to Tom S. (please needinfo tschuster) from comment #2)
Sadly it's a bit difficult to find information on how to do this properly and I only have a fake wired X-Box controller. Can you try out the patch?
I've tested the patch with a Xbox Series X|S controller:
it now returns "xpad" when wired and "microsoft" when wireless (BT)
I'm planning to do some patches this weekend for this and some other issues with Xbox and PS controllers on linux. Would it be ok if i take this bug?
| Assignee | ||
Comment 6•2 months ago
|
||
This is similar to bug 2000789 but for bluetooth controllers.
Co-authored-by: Tom Schuster <evilpies@gmail.com>
Updated•2 months ago
|
| Assignee | ||
Comment 7•2 months ago
|
||
I tested with a Xbox 360 wireless controller with the proprietary dongle (360 didn't support BT yet) and it works (xpad driver)
I tested with a Xbox Series X|S controller wired (xpad driver) and wireless (microsoft driver) via BT and both now correctly map the XY buttons.
I'm not sure what the policy is but I added Tom as Co-authored-by in the commit since I based it on his patch. And added stransky as a reviewer since he reviewed the last patch related to these buttons. Hope thats okay.
Updated•1 month ago
|
Comment 9•1 month ago
|
||
| bugherder | ||
Updated•1 month ago
|
Description
•