mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
Find just joysticks and gamepads (as opposed to, say, USB Audio devices), in
the MacOSX/Darwin joystick initialization code.
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user