src/joystick/darwin/SDL_sysjoystick.c
changeset 620 92080b127f82
parent 617 86e0385b8f96
child 621 c3bb1270fa2b
--- a/src/joystick/darwin/SDL_sysjoystick.c	Thu May 22 06:28:40 2003 +0000
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Thu May 22 06:41:54 2003 +0000
@@ -647,9 +647,9 @@
 
 		/* Filter device list to non-keyboard/mouse stuff */ 
 		if ( device->usagePage == kHIDPage_GenericDesktop &&
-		     (device->usage == kHIDUsage_GD_Keyboard ||
-		      device->usage == kHIDUsage_GD_Mouse)) {
-            
+		     (device->usage != kHIDUsage_GD_Joystick ||
+		      device->usage != kHIDUsage_GD_Gamepad)) {
+
 			/* release memory for the device */
 			HIDDisposeDevice (&device);
 			DisposePtr((Ptr)device);