Cocoa: Add missing IOHID page and usages

Related to #1385.
This commit is contained in:
Camilla Löwy
2019-01-31 00:44:10 +01:00
parent 530b37f4db
commit 51ca41dd9f
2 changed files with 11 additions and 1 deletions
+10 -1
View File
@@ -220,9 +220,18 @@ static void matchCallback(void* context,
case kHIDUsage_GD_Hatswitch:
target = hats;
break;
case kHIDUsage_GD_DPadUp:
case kHIDUsage_GD_DPadRight:
case kHIDUsage_GD_DPadDown:
case kHIDUsage_GD_DPadLeft:
case kHIDUsage_GD_SystemMainMenu:
case kHIDUsage_GD_Select:
case kHIDUsage_GD_Start:
target = buttons;
break;
}
}
else if (page == kHIDPage_Button)
else if (page == kHIDPage_Button || page == kHIDPage_Consumer)
target = buttons;
if (target)