haptic: Deal with deprecated macOS symbol.

This commit is contained in:
Ryan C. Gordon
2022-11-16 10:08:40 -05:00
parent 6801d676c0
commit 9d67686a5b
2 changed files with 9 additions and 1 deletions

View File

@@ -167,7 +167,7 @@ SDL_SYS_HapticInit(void)
}
/* Now search I/O Registry for matching devices. */
result = IOServiceGetMatchingServices(kIOMasterPortDefault, match, &iter);
result = IOServiceGetMatchingServices(kIOMainPortDefault, match, &iter);
if (result != kIOReturnSuccess) {
return SDL_SetError("Haptic: Couldn't create a HID object iterator.");
}