Skip to content

Commit

Permalink
Find just joysticks and gamepads (as opposed to, say, USB Audio devic…
Browse files Browse the repository at this point in the history
…es), in

 the MacOSX/Darwin joystick initialization code.
  • Loading branch information
icculus committed May 22, 2003
1 parent d55ffb7 commit 416e4e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -647,9 +647,9 @@ int SDL_SYS_JoystickInit(void)

/* 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);
Expand Down

0 comments on commit 416e4e4

Please sign in to comment.