src/joystick/darwin/SDL_sysjoystick.c
changeset 2120 2c835d58faad
parent 2110 21942f552734
child 2287 15a242fca6c4
     1.1 --- a/src/joystick/darwin/SDL_sysjoystick.c	Thu Jun 14 06:32:36 2007 +0000
     1.2 +++ b/src/joystick/darwin/SDL_sysjoystick.c	Thu Jun 14 13:21:29 2007 +0000
     1.3 @@ -693,10 +693,10 @@
     1.4  */
     1.5  
     1.6          /* Filter device list to non-keyboard/mouse stuff */
     1.7 -        if ( (device->usagePage != kHIDPage_GenericDesktop) ||
     1.8 -             ((device->usage != kHIDUsage_GD_Joystick &&
     1.9 -               device->usage != kHIDUsage_GD_GamePad &&
    1.10 -               device->usage != kHIDUsage_GD_MultiAxisController)) ) {
    1.11 +        if ((device->usagePage != kHIDPage_GenericDesktop) ||
    1.12 +            ((device->usage != kHIDUsage_GD_Joystick &&
    1.13 +              device->usage != kHIDUsage_GD_GamePad &&
    1.14 +              device->usage != kHIDUsage_GD_MultiAxisController))) {
    1.15  
    1.16              /* release memory for the device */
    1.17              HIDDisposeDevice(&device);