mirror of
https://github.com/yawut/SDL.git
synced 2026-07-29 14:43:21 -05:00
Merged r2992:2993 from branches/SDL-1.2: Mac OS X multi-axis joystick support.
This commit is contained in:
parent
435e813700
commit
62073d041d
|
|
@ -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);
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user