New issue
Advanced search Search tips

Issue 917788 link

Starred by 3 users

Issue metadata

Status: Available
Owner: ----
Cc:
Components:
EstimatedDays: ----
NextAction: ----
OS: Linux , Mac
Pri: 3
Type: Bug



Sign in to add a comment

Incorrect mapping for GreenAsia joystick (0x0e8f, 0x0003) on Linux

Reported by tigerso...@gmail.com, Dec 25

Issue description

UserAgent: Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/72.0.3626.28 Safari/537.36

Steps to reproduce the problem:
1. Insert Arctic USB wireless gamepad[1] to USB port, which is recognized as vendor 0x0e8f product 0x0003 by lsusb.
2. Test the gamepad at http://html5gamepad.com/

[1]. https://www.arctic.ac/us_en/usb-wireless-gamepad.html
[1]. https://www.arctic.ac/us_en/usb-wireless-gamepad.html

[1]. https://www.arctic.ac/us_en/usb-wireless-gamepad.html

What is the expected behavior?
Per spec[2], the mapping for the following buttons are:
  * Right stick X axis: axis 2
  * Right stick Y axis: axis 3
  * L1: button 4
  * L2: button 6
  * R1: button 5
  * R2: button 7

[2]. https://w3c.github.io/gamepad/#remapping

What went wrong?
The X and Y axis are swapped (X mapped to 3 and Y mapped to 2)

The top and bottom L/R buttons are swapped (L1 -> 6, L2 -> 4, R1 -> 7, R2 -> 5)

Did this work before? N/A 

Chrome version: 72.0.3626.28  Channel: beta
OS Version: Archlinux 2018-12-25
Flash Version: 

I guess something is wrong with the MapperXGEAR[3].

The mapping on macOS is also incorrect. Firefox mapping is correct for this gamepad on Linux.

[3]. https://cs.chromium.org/chromium/src/device/gamepad/gamepad_standard_mappings_linux.cc?l=264&rcl=fadf911896ebbd2835a513ffa096486be826e53a
 
Labels: Needs-Triage-M72
Cc: swarnasree.mukkala@chromium.org
Components: Blink>GamepadAPI
Labels: Triaged-ET TE-Hardware-Dependency
Thanks for filing the issue...

The issue seems to be related to Arctic USB wireless gamepad[1] which is not available at TE to test the issue, hence adding "TE-Hardware-Dependency label".
Cc: mattreynolds@chromium.org
Labels: -Pri-2 -Needs-Triage-M72 OS-Mac Pri-3
Status: Available (was: Unconfirmed)

Sign in to add a comment