Renamed functions to get information from device IDs

Fixes https://github.com/libsdl-org/SDL/issues/10237
This commit is contained in:
Sam Lantinga committed 2024-07-14 09:03:59 -07:00
1 parent 933f2fc239
commit e90060d07f
20 files changed
+235 -229

No files matched your search

+1 -1
View File
@@ -109,7 +109,7 @@ int main(int argc, char **argv)
/* Try to find matching device */
else {
for (i = 0; i < num_haptics; i++) {
if (SDL_strstr(SDL_GetHapticInstanceName(haptics[i]), name) != NULL) {
if (SDL_strstr(SDL_GetHapticNameFromID(haptics[i]), name) != NULL) {
break;
}
}