Mac: Fix HID parsing for gamepads

This commit is contained in:
Michael Buckley 2020-01-12 15:47:58 -08:00
parent 04692e1ee4
commit b11657cd0f
1 changed files with 6 additions and 8 deletions

View File

@ -293,13 +293,11 @@ void findControls(struct JoypadDevice &device, NSDictionary *properties, NSMutab
*hat = [properties[@kIOHIDElementCookieKey] intValue]; *hat = [properties[@kIOHIDElementCookieKey] intValue];
} }
} }
else
{
for ( NSDictionary *child in properties[@kIOHIDElementKey] ) for ( NSDictionary *child in properties[@kIOHIDElementKey] )
{ {
findControls(device, child, buttons, axes, hat); findControls(device, child, buttons, axes, hat);
} }
}
} }
void ParseDefaults (void) void ParseDefaults (void)