Find just joysticks and gamepads (as opposed to, say, USB Audio devices), in
the MacOSX/Darwin joystick initialization code. --HG-- extra : convert_revision : svn%3Ac70aab31-4412-0410-b14c-859654838e24/trunk%40621
This commit is contained in:
parent
e52f9bb94e
commit
ae7a1484b4
1 changed files with 3 additions and 3 deletions
|
@ -647,9 +647,9 @@ int SDL_SYS_JoystickInit(void)
|
||||||
|
|
||||||
/* Filter device list to non-keyboard/mouse stuff */
|
/* Filter device list to non-keyboard/mouse stuff */
|
||||||
if ( device->usagePage == kHIDPage_GenericDesktop &&
|
if ( device->usagePage == kHIDPage_GenericDesktop &&
|
||||||
(device->usage == kHIDUsage_GD_Keyboard ||
|
(device->usage != kHIDUsage_GD_Joystick ||
|
||||||
device->usage == kHIDUsage_GD_Mouse)) {
|
device->usage != kHIDUsage_GD_Gamepad)) {
|
||||||
|
|
||||||
/* release memory for the device */
|
/* release memory for the device */
|
||||||
HIDDisposeDevice (&device);
|
HIDDisposeDevice (&device);
|
||||||
DisposePtr((Ptr)device);
|
DisposePtr((Ptr)device);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue