GamePad being detected twice when using SDL_INIT_HAPTIC

Ok, I’m having a weird issue, using SDL 2.0.3 on Mac OS X 10.10

I’m using a Xbox 360 controller. All buttons work fine, it detects connect/disconnect without problems. Yesterday I decided to implement the vibration so I
added SDL_INIT_HAPTIC too.

Code:

SDL_Init(SDL_INIT_VIDEO|SDL_INIT_GAMECONTROLLER|SDL_INIT_HAPTIC)

The problem is that now the event SDL_CONTROLLERDEVICEADDED is being triggered twice when I plug the controller. When I remove SDL_INIT_HAPTIC it only gets called once, but vibration won’t work.
Is this a known issue or may I be doing something wrong?------------------------
@DJ_Link

www.david-amador.com

PS: Also SDL_CONTROLLERDEVICEREMOVED is only called once when I unplug it, even if SDL_CONTROLLERDEVICEADDED is called twice------------------------
@DJ_Link

www.david-amador.com

The CONTROLLERDEVICEADDED issue in OS X is a reported bug: https://bugzilla.libsdl.org/show_bug.cgi?id=2869 https://bugzilla.libsdl.org/show_bug.cgi?id=2869

For force feedback / haptic vibration with the Xbox 360 controller in OS X, you need to use this updated / forked version of the Tattiebogle driver: https://github.com/d235j/360Controller/releases https://github.com/d235j/360Controller/releases
The original version of the Tattiebogle driver has broken force feedback support, and there isn?t much that SDL can do about that.> On Mar 3, 2015, at 8:55 AM, ^DJ_Link^ <david.djlink at gmail.com> wrote:

Ok, I’m having a weird issue, using SDL 2.0.3 on Mac OS X 10.10

I’m using a Xbox 360 controller. All buttons work fine, it detects connect/disconnect without problems. Yesterday I decided to implement the vibration so I
added SDL_INIT_HAPTIC too.

The problem is that now the event SDL_CONTROLLERDEVICEADDED is being triggered twice when I plug the controller. When I remove SDL_INIT_HAPTIC it only gets called once, but vibration won’t work.
Is this a known issue or may I be doing something wrong?

@DJ_Link

www.david-amador.com http://www.david-amador.com/_______________________________________________
SDL mailing list
SDL at lists.libsdl.org <mailto:SDL at lists.libsdl.org>
http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org http://lists.libsdl.org/listinfo.cgi/sdl-libsdl.org