Mac OS X joystick support: don't ignore kHIDUsage_GD_MultiAxisController

devices, since they are probably joysticks, or joystick-like things.

See 3Dconnexion's SpaceNavigator for an example of such a device:
   http://www.3dconnexion.com/products/3a1d.php

Thanks to Laurence Passmore for the fix.

--HG--
branch : SDL-1.2
extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/branches/SDL-1.2%402284
This commit is contained in:
Ryan C. Gordon 2007-03-18 22:37:10 +00:00
parent 9e136b5ec7
commit 87f0994d7a

View file

@ -652,7 +652,8 @@ int 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)) ) {
device->usage != kHIDUsage_GD_GamePad &&
device->usage != kHIDUsage_GD_MultiAxisController)) ) {
/* release memory for the device */
HIDDisposeDevice (&device);