From a70f77d290c5ff9bdae809a3a2c048e6711152c2 Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Thu, 22 May 2003 20:42:37 +0000 Subject: [PATCH] Attempt #3: Fixed boolean logic bug that caused all HID joysticks to be rejected on MacOSX/Darwin. Works now. No, really this time. --ryan. --- src/joystick/darwin/SDL_sysjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/darwin/SDL_sysjoystick.c b/src/joystick/darwin/SDL_sysjoystick.c index 635350c9f..14a0ce897 100644 --- a/src/joystick/darwin/SDL_sysjoystick.c +++ b/src/joystick/darwin/SDL_sysjoystick.c @@ -647,7 +647,7 @@ int SDL_SYS_JoystickInit(void) /* 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 */