changeset 622:e6d751de784a

Attempt #3: Fixed boolean logic bug that caused all HID joysticks to be rejected on MacOSX/Darwin. Works now. No, really this time. --ryan.
author Ryan C. Gordon <icculus@icculus.org>
date Thu, 22 May 2003 20:42:37 +0000
parents c3bb1270fa2b
children 477917048b91
files src/joystick/darwin/SDL_sysjoystick.c
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/joystick/darwin/SDL_sysjoystick.c	Thu May 22 07:12:36 2003 +0000
+++ b/src/joystick/darwin/SDL_sysjoystick.c	Thu May 22 20:42:37 2003 +0000
@@ -647,7 +647,7 @@
 
 		/* Filter device list to non-keyboard/mouse stuff */ 
 		if ( device->usagePage == kHIDPage_GenericDesktop &&
-		     (device->usage != kHIDUsage_GD_Joystick ||
+		     (device->usage != kHIDUsage_GD_Joystick &&
 		      device->usage != kHIDUsage_GD_GamePad)) {
 
 			/* release memory for the device */