From a72d4752860abfde6abdc132606a431144a97786 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. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40623 --- 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 */