src/joystick/darwin/SDL_sysjoystick.c
changeset 2097 b0048df1701a
parent 1895 c121d94672cb
child 2109 51cbe188a49e
equal deleted inserted replaced
2096:87256df87837 2097:b0048df1701a
   688 /*		if (KERN_SUCCESS != result)
   688 /*		if (KERN_SUCCESS != result)
   689 			HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);
   689 			HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);
   690 */
   690 */
   691 
   691 
   692         /* Filter device list to non-keyboard/mouse stuff */
   692         /* Filter device list to non-keyboard/mouse stuff */
   693         if ((device->usagePage != kHIDPage_GenericDesktop) ||
   693         if ( (device->usagePage != kHIDPage_GenericDesktop) ||
   694             ((device->usage != kHIDUsage_GD_Joystick &&
   694              ((device->usage != kHIDUsage_GD_Joystick &&
   695               device->usage != kHIDUsage_GD_GamePad))) {
   695                device->usage != kHIDUsage_GD_GamePad &&
       
   696                device->usage != kHIDUsage_GD_MultiAxisController)) ) {
   696 
   697 
   697             /* release memory for the device */
   698             /* release memory for the device */
   698             HIDDisposeDevice(&device);
   699             HIDDisposeDevice(&device);
   699             DisposePtr((Ptr) device);
   700             DisposePtr((Ptr) device);
   700             continue;
   701             continue;