SDL_IsGameController() returning false for Xbox One Wired Controller on macOS


#1

I can’t use my Xbox One Wired Controller on macOS 10.12.4 using the 360 driver version 0.16.5 from https://github.com/360Controller/360Controller/

https://hg.libsdl.org/SDL/file/tip/src/joystick/SDL_gamecontrollerdb.h has:

03000000c6240000045d000000000000,Xbox 360 Wired Controller
030000005e040000d102000000000000,Xbox One Wired Controller
030000005e040000e302000000000000,Xbox One Wired Controller
030000005e040000e002000003090000,Xbox Wireless Controller
030000005e040000ea02000000000000,Xbox Wireless Controller
030000005e040000fd02000003090000,Xbox Wireless Controller

I have:

030000005e040000dd02000000000000,Xbox One Wired Controller

My test program tries to open game controllers and I get this:

0 030000004c050000a00b000000010000 DUALSHOCK®4 USB Wireless Adaptor
1 030000005e040000dd02000000000000 Xbox One Wired Controller
SdlError("Couldn\'t find mapping for device (1)")

If I just open joystics, I get button input from the gamepad and it feels like it’s working.

Any ideas if this combination should work out of the box?


#2

If I enable that checkbox in the driver settings it works like it should, just as a 360 controller.

name: 0 030000004c050000a00b000000010000 DUALSHOCK®4 USB Wireless Adaptor
name: 1 030000005e0400008e02000000000000 Xbox 360 Wired Controller