src/joystick/darwin/SDL_sysjoystick.c
branchSDL-1.2
changeset 3924 7156c3b5536b
parent 1635 92947e3a18db
child 3945 14bec334705f
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;