src/joystick/darwin/SDL_sysjoystick.c
changeset 621 c3bb1270fa2b
parent 620 92080b127f82
child 622 e6d751de784a
equal deleted inserted replaced
620:92080b127f82 621:c3bb1270fa2b
   646 //			HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);
   646 //			HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);
   647 
   647 
   648 		/* Filter device list to non-keyboard/mouse stuff */ 
   648 		/* Filter device list to non-keyboard/mouse stuff */ 
   649 		if ( device->usagePage == kHIDPage_GenericDesktop &&
   649 		if ( device->usagePage == kHIDPage_GenericDesktop &&
   650 		     (device->usage != kHIDUsage_GD_Joystick ||
   650 		     (device->usage != kHIDUsage_GD_Joystick ||
   651 		      device->usage != kHIDUsage_GD_Gamepad)) {
   651 		      device->usage != kHIDUsage_GD_GamePad)) {
   652 
   652 
   653 			/* release memory for the device */
   653 			/* release memory for the device */
   654 			HIDDisposeDevice (&device);
   654 			HIDDisposeDevice (&device);
   655 			DisposePtr((Ptr)device);
   655 			DisposePtr((Ptr)device);
   656 			continue;
   656 			continue;