comparison src/joystick/darwin/SDL_sysjoystick.c @ 3924:7156c3b5536b SDL-1.2

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.
author Ryan C. Gordon <icculus@icculus.org>
date Sun, 18 Mar 2007 22:37:10 +0000
parents 92947e3a18db
children 14bec334705f
comparison
equal deleted inserted replaced
3923:0dd8bdf173e2 3924:7156c3b5536b
650 */ 650 */
651 651
652 /* Filter device list to non-keyboard/mouse stuff */ 652 /* Filter device list to non-keyboard/mouse stuff */
653 if ( (device->usagePage != kHIDPage_GenericDesktop) || 653 if ( (device->usagePage != kHIDPage_GenericDesktop) ||
654 ((device->usage != kHIDUsage_GD_Joystick && 654 ((device->usage != kHIDUsage_GD_Joystick &&
655 device->usage != kHIDUsage_GD_GamePad)) ) { 655 device->usage != kHIDUsage_GD_GamePad &&
656 device->usage != kHIDUsage_GD_MultiAxisController)) ) {
656 657
657 /* release memory for the device */ 658 /* release memory for the device */
658 HIDDisposeDevice (&device); 659 HIDDisposeDevice (&device);
659 DisposePtr((Ptr)device); 660 DisposePtr((Ptr)device);
660 continue; 661 continue;