I have an Xbox 360 controller hooked up to a USB port on my MacBook Air running OS 10.8.4 with Matlab R2010a and the latest PTB extensions. I got Mac OS to recognize the controller by installing a driver that is available at http://tattiebogle.net/index.php/ProjectRoot/Xbox360Controller/OsxDriver. The driver enables the OS to detect the controller as evidenced in the system profiler. Matlab also seems to have no problem detecting the controller, as a call to Gamepad('GetNumGamepads') returns "1". However, for some reason Gamepad doesn't see any of the buttons on the controller (i.e., GetNumButtons returns zero). The only other thing that Gamepad seems to recognize is the thumbpad on the controller (i.e., GetNumAxes returns "4" ). I've also tried a generic Xbox controller (an off-brand knockoff), but got the same result as with an original Microsoft controller. Does anyone have any experience with connecting an Xbox controller to a Mac in Matlab/PTB? Or can anyone recommend a different controller that will work better? My experiment requires a gamepad style controller with at least 5 buttons.
Thanks!
Jin