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

Incorrect mapping on 8BitDo Ultimate 2C Wireless via USB/2.4Ghz #12219

Open
Dithowrock opened this issue Feb 8, 2025 · 0 comments
Open

Incorrect mapping on 8BitDo Ultimate 2C Wireless via USB/2.4Ghz #12219

Dithowrock opened this issue Feb 8, 2025 · 0 comments

Comments

@Dithowrock
Copy link

Dithowrock commented Feb 8, 2025

Description

Axis mapping on 8BitDo via USB/2.4Ghz is wrong due to a mix-up on the Z and RZ axis as see on the JSTest below. This is only on JoystickAPI (jsX) and Gamepad KCM (even when joydev module disabled and blacklisted) affecting other apps that take this input such as Waydroid. However, Steam, Evdev API and SDL2 show normal mapping.
Mapping via Bluetooth is correct.

System Information

OS: Arch Linux x86_64
Kernel: 6.13.1-arch1-1
DE: Plasma 6.2.5

Installed SDL Information

SDL3: 3.2.4
SDL2-compat: 2.30.54
SDL12-compat: 1.2.68

Controller Information

Model: 8BitDo Ultimate 2C Wireless
lsusb output: ID 2dc8:310a 8BitDo 8BitDo Ultimate 2C Wireless Controller

SDL Tests

sdl-jstest --test output:

Joystick Name:   '8BitDo Ultimate 2C Wireless Controller'
Joystick Number: 0

Axes  6:
   0:      0  [                                               #                                                ]
   1:     -1  [                                               #                                                ]
   2: -32768  [#                                                                                               ]
   3:      0  [                                               #                                                ]
   4:     -1  [                                               #                                                ]
   5: -32768  [#                                                                                               ]

Buttons 11:
   0: 0  [ ]
   1: 0  [ ]
   2: 0  [ ]
   3: 0  [ ]
   4: 0  [ ]
   5: 0  [ ]
   6: 0  [ ]
   7: 0  [ ]
   8: 0  [ ]
   9: 0  [ ]
  10: 0  [ ]

Hats  1:
   0: value: 0
  +-----+  up:    0
  |     |  down:  0
  |  O  |  left:  0
  |     |  right: 0Balls  0: Press Ctrl-c to exit

sdl2-jstest --test output: Unable to open joystick 0

Gamepad-tool with both stick correctly pointing up:
Image

  • Setting up mapping via SDL_GAMECONTROLLERCONFIG does not fix sdl-jstest output.

JSTest

Real mapping is the one shown as wrong, however it can be edited to be correct. This does not fix mapping since apps don't use JoystickAPI.

Wrong:
Image
Image

Correct:
Image
Image

Evdev Tests

USB/2.4Ghz while holding triggers:
Image
Bluetooth:
Image

DMESG

USB/2.4Ghz:

[ 4500.208001] usb 1-5: new full-speed USB device number 15 using xhci_hcd
[ 4500.333533] usb 1-5: not running at top speed; connect to a high speed hub
[ 4500.342246] usb 1-5: New USB device found, idVendor=2dc8, idProduct=310a, bcdDevice= 1.14
[ 4500.342259] usb 1-5: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[ 4500.342264] usb 1-5: Product: 8BitDo Ultimate 2C Wireless Controller
[ 4500.342269] usb 1-5: Manufacturer: 8BitDo
[ 4500.342272] usb 1-5: SerialNumber: 0000000000
[ 4500.347024] input: 8BitDo Ultimate 2C Wireless Controller as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.0/input/input42
[ 4500.353727] input: 8BitDo 8BitDo Ultimate 2C Wireless Controller Keyboard as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:2DC8:310A.0010/input/input43
[ 4500.428353] input: 8BitDo 8BitDo Ultimate 2C Wireless Controller Mouse as /devices/pci0000:00/0000:00:14.0/usb1/1-5/1-5:1.1/0003:2DC8:310A.0010/input/input44
[ 4500.428888] hid-generic 0003:2DC8:310A.0010: input,hidraw0: USB HID v1.11 Keyboard [8BitDo 8BitDo Ultimate 2C Wireless Controller] on usb-0000:00:14.0-5/input1
[ 4500.437527] hid-generic 0003:2DC8:310A.0011: hiddev96,hidraw1: USB HID v1.11 Device [8BitDo 8BitDo Ultimate 2C Wireless Controller] on usb-0000:00:14.0-5/input2

Bluetooth:

[34681.518028] input: 8BitDo Ultimate 2C Wireless as /devices/virtual/misc/uhid/0005:2DC8:301B.0016/input/input51
[34681.518145] hid-generic 0005:2DC8:301B.0016: input,hidraw0: BLUETOOTH HID v0.01 Gamepad [8BitDo Ultimate 2C Wireless] on 8c:88:2b:20:24:b5

KCM Gamepad

USB/2.4Ghz:
Image
Bluetooth:
Image

If this turns out to be a KDE/KCM problem, please let me know so I can open an issue there and sorry if my contribution is bad since this is my first created issue and English is not my first language.

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

No branches or pull requests

1 participant