Merged r2992:2993 from branches/SDL-1.2: Mac OS X multi-axis joystick support.

This commit is contained in:
Ryan C. Gordon 2007-03-18 22:39:24 +00:00
parent 435e813700
commit 62073d041d

View File

@ -690,9 +690,10 @@ SDL_SYS_JoystickInit(void)
*/
/* 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 &&
device->usage != kHIDUsage_GD_MultiAxisController)) ) {
/* release memory for the device */
HIDDisposeDevice(&device);