Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
God, this is the never-ending patch. Another USB joystick detection f…
…ix for

 MacOSX/Darwin.  --ryan.
  • Loading branch information
icculus committed May 25, 2003
1 parent a70f77d commit 128f200
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -646,9 +646,9 @@ int SDL_SYS_JoystickInit(void)
// HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);

/* Filter device list to non-keyboard/mouse stuff */
if ( device->usagePage == kHIDPage_GenericDesktop &&
(device->usage != kHIDUsage_GD_Joystick &&
device->usage != kHIDUsage_GD_GamePad)) {
if ( (device->usagePage != kHIDPage_GenericDesktop) ||
((device->usage != kHIDUsage_GD_Joystick &&
device->usage != kHIDUsage_GD_GamePad)) ) {

/* release memory for the device */
HIDDisposeDevice (&device);
Expand Down

0 comments on commit 128f200

Please sign in to comment.