Navigation Menu

Skip to content

Commit

Permalink
Mac OS X joystick support: don't ignore kHIDUsage_GD_MultiAxisController
Browse files Browse the repository at this point in the history
 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.
  • Loading branch information
icculus committed Mar 18, 2007
1 parent 3782cce commit f7b621c
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -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);
Expand Down

0 comments on commit f7b621c

Please sign in to comment.