Closed Bug 1643358 Opened 6 years ago Closed 4 months ago

xbox gamepad mapped differently in firefox on Linux and Windows

Categories

(Core :: DOM: Device Interfaces, defect, P2)

76 Branch
Desktop
Linux
defect

Tracking

()

RESOLVED WORKSFORME

People

(Reporter: lambert.quentin, Unassigned)

References

(Blocks 2 open bugs)

Details

(Keywords: webcompat:platform-bug)

User Story

user-impact-score:400

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

I am going to consider that the behaviour on Windows is the correct one because it is consistent with Chrome's behaviour.
Connect an xbox controller to your Linux machine.
Go to http://html5gamepad.com.
Press the left stick button.

Actual results:

Button B9's value changes to 1.

Expected results:

Button B10's value changes to 1.

Component: Untriaged → DOM: Device Interfaces
OS: Unspecified → Linux
Product: Firefox → Core
Hardware: Unspecified → Desktop
Severity: -- → S3
Priority: -- → P2
Blocks: 1643835

(In reply to lambert.quentin from comment #0)

User Agent: Mozilla/5.0 (X11; Linux x86_64; rv:76.0) Gecko/20100101 Firefox/76.0

Steps to reproduce:

I am going to consider that the behaviour on Windows is the correct one because it is consistent with Chrome's behaviour.
Connect an xbox controller to your Linux machine.
Go to http://html5gamepad.com.
Press the left stick button.

Actual results:

Button B9's value changes to 1.

Expected results:

Button B10's value changes to 1.

Thanks for report this. We will figure out how to fix it.

Any update here?

I have the same problem on Linux using the 8BitDo N300 pro which is detected on Linux as a XBox Controller.

Possible duplicate issue, see #952773

Restrict Comments: true
User Story: (updated)

I tried this with an XBox 360 Wireless controller and it seemed to work correctly. Which Xbox controller are you using? What driver is that controller using?

Also, if you run evtest with that controller and push those buttons what does it report?

The original reporter reached out to me confirm that they can't reproduce the bug anymore. Pascal, if you can still reproduce a problem please file a new bug and mention it here.

Status: UNCONFIRMED → RESOLVED
Closed: 4 months ago
Resolution: --- → FIXED
Resolution: FIXED → WORKSFORME
You need to log in before you can comment on or make changes to this bug.