SDL: [BUG] XBox One Series X controller, the "Share" button doesn't works, Linux Mint

Hello! I do have the recently bought gamepad of Xbox One Series X model 1914. I run it via USB (USB Type-C <-> PC). The device itself is wireless mainly, but it can be used via USB cable too.

Here are the next specs I got when I run the unit test:

INFO: Joystick device 0 added.
INFO: Joystick
INFO:        name: Xbox One Series X Controller
INFO:        type: Game Controller
INFO:        axes: 6
INFO:       balls: 0
INFO:        hats: 1
INFO:     buttons: 11
INFO: instance id: 0
INFO:        guid: 030000005e040000120b000001050000
INFO:     VID/PID: 0x045e/0x0b12

I had to use SDL 2.0.14, however, I found this commit: https://github.com/libsdl-org/SDL/commit/a5dba7d3ab2bcdefb2dc9e590767bf345a81dfa5

Then, I tried to build the top main state (c12f46b100d22a0e06a64c5b6d1baa3f446d34e6), however, the button is still won’t work.

About this issue

  • Original URL
  • State: closed
  • Created 3 years ago
  • Comments: 16 (9 by maintainers)

Most upvoted comments

I updated the stuff a while ago and it works now. I forgot to reply here.

@slouken Should I move this into a new issue?

Yes please. X11 interpreting the share button as a record key is a different issue from the original one where the HIDAPI driver wasn’t being used.

Hi, it seems like this did not get resolved yet? This seems like a relevant issue, so I’m posting here rather than creating a new one.

I am also having trouble with the share button of this controller via another program, which is using SDL.

I ran the testgamepad command that is provided with the SDL source code. Pressing the share button on the controller gives the following output:

The key you just pressed is not recognized by SDL. To help get this fixed, please report this to the SDL forums/mailing list https://discourse.libsdl.org/ X11 KeyCode 175 (167), X11 KeySym 0x1008FF1C (XF86AudioRecord).

I also ran the controllermap command, this is the mapping I ended up with:

050000005e040000130b000007050000,Xbox Series X Controller,platform:Linux,a:b0,b:b1,x:b3,y:b4,back:b10,guide:b12,start:b11,leftstick:b13,rightstick:b14,leftshoulder:b6,rightshoulder:b7,dpup:h0.1,dpdown:h0.4,dpleft:h0.8,dpright:h0.2,misc1:b15,leftx:a0,lefty:a1,rightx:a2,righty:a3,lefttrigger:a5,righttrigger:a4,

The same error message as above was printed when I pressed the share button while the button was highlighted in the shown layout.

My system information:

$ cat /etc/fedora-release
Fedora release 35 (Thirty Five)
$ uname -r
5.15.12-200.fc35.x86_64

Please tell me if I can provide any more useful information for solving this.