Mercurial > sdl-ios-xcode
changeset 620:92080b127f82
Find just joysticks and gamepads (as opposed to, say, USB Audio devices), in
the MacOSX/Darwin joystick initialization code.
author | Ryan C. Gordon <icculus@icculus.org> |
---|---|
date | Thu, 22 May 2003 06:41:54 +0000 |
parents | bf816ce70144 |
children | c3bb1270fa2b |
files | src/joystick/darwin/SDL_sysjoystick.c |
diffstat | 1 files changed, 3 insertions(+), 3 deletions(-) [+] |
line wrap: on
line diff
--- a/src/joystick/darwin/SDL_sysjoystick.c Thu May 22 06:28:40 2003 +0000 +++ b/src/joystick/darwin/SDL_sysjoystick.c Thu May 22 06:41:54 2003 +0000 @@ -647,9 +647,9 @@ /* Filter device list to non-keyboard/mouse stuff */ if ( device->usagePage == kHIDPage_GenericDesktop && - (device->usage == kHIDUsage_GD_Keyboard || - device->usage == kHIDUsage_GD_Mouse)) { - + (device->usage != kHIDUsage_GD_Joystick || + device->usage != kHIDUsage_GD_Gamepad)) { + /* release memory for the device */ HIDDisposeDevice (&device); DisposePtr((Ptr)device);