grumpycoders / grumpycoders/pcsx-redux

Linux Xbox One S Controller works wired but not via bluetooth (xpadneo)

Open
#1,024 9 comments 0 reactions 0 assignees View on GitHub
Dominant language
C++
Stars
994
Forks
151
Avg merge
1d 15h
Merged PRs (30d)
18

Description

### Describe the bug

Manjaro Linux, xpadneo, bluetooth, Xbox One S Controller, recognized by system but not available to PCSX-Redux

### Expected behavior

SDL controller should be recognized by PCSX-Redux if it is recognized by the computer, regardless of the connection method (USB, dongle, bluetooth). In this case, both sdl-jstest and sdl2-jstest recognize the device (SDL/SDL2 backends) even without a gamecontrollerdb.txt loaded.

```
sdl-jstest -l
Found 1 joystick(s)

Joystick Name: 'Xbox One S Controller'
Joystick Number: 0
Number of Axes: 7
Number of Buttons: 12
Number of Hats: 1
Number of Balls: 0

sdl2-jstest -l
error: failed to read gamecontrollerdb.txt: Invalid RWops
Found 1 joystick(s)

Joystick Name: 'Xbox One S Controller'
Joystick GUID: 050000005e040000e002000003090000
Joystick Number: 0
Number of Axes: 7
Number of Buttons: 12
Number of Hats: 1
Number of Balls: 0
GameControllerConfig:
Name: 'Xbox One Wireless Controller'
Mapping: '050000005e040000e002000003090000,Xbox One Wireless Controller,a:b0,b:b1,back:b6,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,dpup:h0.1,guide:b10,leftshoulder:b4,leftstick:b8,lefttrigger:a2,leftx:a0,lefty:a1,rightshoulder:b5,rightstick:b9,righttrigger:a5,rightx:a3,righty:a4,start:b7,x:b2,y:b3,platform:Linux'
```

### Steps to reproduce the bug

Connect controller, launch either Linux Appimage or build from source. Both exhibit same issue. Logitech F710 controller is recognized but it has dedicated USB dongle. Bluetooth connection shouldn't be an issue.

### Operating System

Manjaro Linux (Arch-like) Sikaris 22.0.0

### PCSX-Redux version

Rolling build from Arch with custom PKGBUILD that produces same install layout as AppImage, as well as latest AppImage.

### CPU model

i7-7700HQ

### GPU model

Nvidia GeForce GTX 1060 Mobile

### BIOS version

OpenBios, scph-5501

### CPU emulation mode

Recompiler

### Additional information

Controller status is unrelated to game/re-compiler/etc.
![connected](https://user-images.githubusercontent.com/29848078/200448678-5b811f5b-36a1-43c3-9131-7546b8d80772.png)

Contributor guide

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.