# HG changeset patch # User Ryan C. Gordon # Date 1174257430 0 # Node ID 7156c3b5536b4862c7681bdef6b14524d806cac6 # Parent 0dd8bdf173e25c4482b5d3e31d6f39dcc1b73bfe Mac OS X joystick support: don't ignore kHIDUsage_GD_MultiAxisController devices, since they are probably joysticks, or joystick-like things. See 3Dconnexion's SpaceNavigator for an example of such a device: http://www.3dconnexion.com/products/3a1d.php Thanks to Laurence Passmore for the fix. diff -r 0dd8bdf173e2 -r 7156c3b5536b src/joystick/darwin/SDL_sysjoystick.c --- a/src/joystick/darwin/SDL_sysjoystick.c Wed Mar 14 01:09:24 2007 +0000 +++ b/src/joystick/darwin/SDL_sysjoystick.c Sun Mar 18 22:37:10 2007 +0000 @@ -652,7 +652,8 @@ /* Filter device list to non-keyboard/mouse stuff */ if ( (device->usagePage != kHIDPage_GenericDesktop) || ((device->usage != kHIDUsage_GD_Joystick && - device->usage != kHIDUsage_GD_GamePad)) ) { + device->usage != kHIDUsage_GD_GamePad && + device->usage != kHIDUsage_GD_MultiAxisController)) ) { /* release memory for the device */ HIDDisposeDevice (&device);