LaurentGomila/SFML — Issue #138: sf::Joystick not detecting controllers designated as "Gamepad"
Author: capz
Created: 2011-12-20 01:23:19+00:00
State: open

Wrote a post about it before realizing that submitting it here might be better: http://www.sfml-dev.org/forum/viewtopic.php?p=43067#43067

Long story short, in the Mac OS X SFML2 Joystick implementation currently only processes HID game controllers that are designated as "Generic Desktop Joystick" by their driver, ones designated as "Generic Desktop Joystick" (such as the wired xbox 360 controller with open source mac driver, are not detected.

Fix: filter HID devices not only by Joystick, but also add Gamepad (IE. kHIDUsage_GD_Joystick and kHIDUsage_GD_Gamepad )