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
PS: Also SDL_CONTROLLERDEVICEREMOVED is only called once when I unplug it, even if SDL_CONTROLLERDEVICEADDED is called twice------------------------ @DJ_Link
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/releaseshttps://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?