Browse Source

OSX: Revert back to kHIDUsage_GD_Joystick

Bug introduced in 547a57777b199f451305a6d4b6ad63fb0b2bd3ed.
Rémi Verschelde 8 years ago
parent
commit
4163be67a1
1 changed files with 2 additions and 2 deletions
  1. 2 2
      platform/osx/joypad_osx.cpp

+ 2 - 2
platform/osx/joypad_osx.cpp

@@ -234,7 +234,7 @@ static bool is_joypad(IOHIDDeviceRef p_device_ref) {
 	if (refCF) {
 	if (refCF) {
 		CFNumberGetValue((CFNumberRef) refCF, kCFNumberSInt32Type, &usage);
 		CFNumberGetValue((CFNumberRef) refCF, kCFNumberSInt32Type, &usage);
 	}
 	}
-	if ((usage != kHIDUsage_GD_Joypad &&
+	if ((usage != kHIDUsage_GD_Joystick &&
 		 usage != kHIDUsage_GD_GamePad &&
 		 usage != kHIDUsage_GD_GamePad &&
 		 usage != kHIDUsage_GD_MultiAxisController)) {
 		 usage != kHIDUsage_GD_MultiAxisController)) {
 		return false;
 		return false;
@@ -588,7 +588,7 @@ JoypadOSX::JoypadOSX()
 
 
 	int okay = 1;
 	int okay = 1;
 	const void *vals[] = {
 	const void *vals[] = {
-		(void *) create_match_dictionary(kHIDPage_GenericDesktop, kHIDUsage_GD_Joypad, &okay),
+		(void *) create_match_dictionary(kHIDPage_GenericDesktop, kHIDUsage_GD_Joystick, &okay),
 		(void *) create_match_dictionary(kHIDPage_GenericDesktop, kHIDUsage_GD_GamePad, &okay),
 		(void *) create_match_dictionary(kHIDPage_GenericDesktop, kHIDUsage_GD_GamePad, &okay),
 		(void *) create_match_dictionary(kHIDPage_GenericDesktop, kHIDUsage_GD_MultiAxisController, &okay),
 		(void *) create_match_dictionary(kHIDPage_GenericDesktop, kHIDUsage_GD_MultiAxisController, &okay),
 	};
 	};