Skip to content
This repository has been archived by the owner on Feb 11, 2021. It is now read-only.

Commit

Permalink
Merged r2992:2993 from branches/SDL-1.2: Mac OS X multi-axis joystick…
Browse files Browse the repository at this point in the history
… support.
  • Loading branch information
icculus committed Mar 18, 2007
1 parent 9a7ba9d commit ecc703d
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/joystick/darwin/SDL_sysjoystick.c
Expand Up @@ -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);
Expand Down

0 comments on commit ecc703d

Please sign in to comment.