Hi all,
I’m trying to detect a genuine Xbox360 controller, but SDL_IsGameController is returning false.
Using Visual studio 2013 community on windows 7 64bit SP1.
I have a genuine xbox controller plugged in one of the USB ports and the system ‘Set up USB game controllers’ shows the pad working OK.
The test project is using SDL_gamecontroller.h and SDL_gamecontroller.c from www.libsdl.org and is using the x86 library on a VC x86 build.
When I build and run the project the console window displays this:
INFO: Joystick 0: XBOX 360 For Windows (Controller) (guid 5e048e0200000000000050
4944564944)
INFO: There are 0 game controller(s) attached (1 joystick(s))
It is the same in my game code. I’ve searched the net and cannot fathom whats going on. I don’t have another controller to try at the moment.
SDL joystick calls work okay but the user would have to redefine the pad buttons etc for their stick, which is what gamecontroller is meant to avoid.
Any ideas? Thanks in advance.