Skip to content
Permalink
Browse files

Find just joysticks and gamepads (as opposed to, say, USB Audio devic…

…es), in

 the MacOSX/Darwin joystick initialization code.
  • Loading branch information
icculus committed May 22, 2003
1 parent d55ffb7 commit 416e4e438ff23c0260ece28b7b75f29d4086dfde
Showing with 3 additions and 3 deletions.
  1. +3 −3 src/joystick/darwin/SDL_sysjoystick.c
@@ -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);

0 comments on commit 416e4e4

Please sign in to comment.