The SDL forums have moved to discourse.libsdl.org.
This is just a read-only archive of the previous forums, to keep old links working.


SDL Forum Index
SDL
Simple Directmedia Layer Forums
Wired Xbox controller not recognised as Game Controller?
SRG


Joined: 10 Nov 2016
Posts: 3
Location: London
Hi,

I am new to SDL and am using it for controls in a game.
On Mac, SDL does not recognise my wired xbox controller as a game controller but does recognise it as a joystick.
On PC is does recognise it as game controller.
Is this correct behaviour on a mac?
Wired Xbox controller not recognised as Game Controller?
Sam Lantinga


Joined: 10 Sep 2009
Posts: 1765
If you grab the latest SDL snapshot, build and install it and then run testgamecontroller from the test directory, what does it print out?http://www.libsdl.org/tmp/SDL-2.0.zip


Here's the output on my 10.11 system with the tattiebogle XBox controller driver:

2016-11-26 14:38:03.598 testgamecontroller[25577:929997] INFO: Controller 0: X360 Controller (guid 030000005e0400008e02000000000000, VID 0x045e, PID 0x028e)
2016-11-26 14:38:03.599 testgamecontroller[25577:929997] INFO: There are 1 game controller(s) attached (1 joystick(s))


On Fri, Nov 11, 2016 at 6:01 AM, SRG wrote:
Quote:
Hi,

I am new to SDL and am using it for controls in a game.
On Mac, SDL does not recognise my wired xbox controller as a game controller but does recognise it as a joystick.
On PC is does recognise it as game controller.
Is this correct behaviour on a mac?


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

SRG


Joined: 10 Nov 2016
Posts: 3
Location: London
I am using this driver ( https://github.com/360Controller/360Controller/releases ) to get my Xbox One controller to work.

I get this output...

2016-12-04 16:45:39.471747 testgamecontroller[572:8968] INFO: Joystick 0: Xbox One Wired Controller (guid 0d0f0000000000006700000000000000)
2016-12-04 16:45:39.471811 testgamecontroller[572:8968] INFO: There are 0 game controller(s) attached (1 joystick(s))

I think it just does not recognise Xbox One controller but recognises Xbox 360 controller

Any other suggestions?
Wired Xbox controller not recognised as Game Controller?
Sam Lantinga


Joined: 10 Sep 2009
Posts: 1765
Fixed!
https://hg.libsdl.org/SDL/rev/bfddf6a4bcad


On Sun, Dec 4, 2016 at 9:52 AM, SRG wrote:
Quote:
I am using this driver ( https://github.com/360Controller/360Controller/releases ) to get my Xbox One controller to work.

I get this output...

2016-12-04 16:45:39.471747 testgamecontroller[572:8968] INFO: Joystick 0: Xbox One Wired Controller (guid 0d0f0000000000006700000000000000)
2016-12-04 16:45:39.471811 testgamecontroller[572:8968] INFO: There are 0 game controller(s) attached (1 joystick(s))

I think it just does not recognise Xbox One controller but recognises Xbox 360 controller

Any other suggestions?


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

Wired Xbox controller not recognised as Game Controller?
Sam Lantinga


Joined: 10 Sep 2009
Posts: 1765
Actually, what XBox One controller do you have? You might have to run controllermap yourself, as that doesn't look like a Microsoft controller.

On Sun, Dec 4, 2016 at 9:52 AM, SRG wrote:
Quote:
I am using this driver ( https://github.com/360Controller/360Controller/releases ) to get my Xbox One controller to work.

I get this output...

2016-12-04 16:45:39.471747 testgamecontroller[572:8968] INFO: Joystick 0: Xbox One Wired Controller (guid 0d0f0000000000006700000000000000)
2016-12-04 16:45:39.471811 testgamecontroller[572:8968] INFO: There are 0 game controller(s) attached (1 joystick(s))

I think it just does not recognise Xbox One controller but recognises Xbox 360 controller

Any other suggestions?


_______________________________________________
SDL mailing list

http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org

HORI HORIPAD
SRG


Joined: 10 Nov 2016
Posts: 3
Location: London
Its a HORI HORIPAD. Like this one https://www.amazon.com/HORI-HORIPAD-Xbox-Officially-Licensed-Controller/dp/B00O7. It says its official licensed.

Thanks for the fix. How do i get it? Copy and paste into my version of SDL_gamecontrollerdb.h?