src/joystick/darwin/SDL_sysjoystick.c
changeset 623 477917048b91
parent 622 e6d751de784a
child 629 3fa401bb4bb5
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Thu May 22 20:42:37 2003 +0000
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Sun May 25 02:17:52 2003 +0000
     1.3 @@ -646,9 +646,9 @@
     1.4  //			HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);
     1.5  
     1.6  		/* Filter device list to non-keyboard/mouse stuff */ 
     1.7 -		if ( device->usagePage == kHIDPage_GenericDesktop &&
     1.8 -		     (device->usage != kHIDUsage_GD_Joystick &&
     1.9 -		      device->usage != kHIDUsage_GD_GamePad)) {
    1.10 +		if ( (device->usagePage != kHIDPage_GenericDesktop) ||
    1.11 +		     ((device->usage != kHIDUsage_GD_Joystick &&
    1.12 +		      device->usage != kHIDUsage_GD_GamePad)) ) {
    1.13  
    1.14  			/* release memory for the device */
    1.15  			HIDDisposeDevice (&device);