mirror of
https://github.com/yawut/SDL.git
synced 2026-08-28 03:34:44 -05:00
God, this is the never-ending patch. Another USB joystick detection fix for
MacOSX/Darwin. --ryan.
This commit is contained in:
@@ -646,9 +646,9 @@ int SDL_SYS_JoystickInit(void)
|
||||
// HIDReportErrorNum ("IOObjectRelease error with ioHIDDeviceObject.", result);
|
||||
|
||||
/* Filter device list to non-keyboard/mouse stuff */
|
||||
if ( device->usagePage == kHIDPage_GenericDesktop &&
|
||||
(device->usage != kHIDUsage_GD_Joystick &&
|
||||
device->usage != kHIDUsage_GD_GamePad)) {
|
||||
if ( (device->usagePage != kHIDPage_GenericDesktop) ||
|
||||
((device->usage != kHIDUsage_GD_Joystick &&
|
||||
device->usage != kHIDUsage_GD_GamePad)) ) {
|
||||
|
||||
/* release memory for the device */
|
||||
HIDDisposeDevice (&device);
|
||||
|
||||
Reference in New Issue
Block a user