Added the ability to rename your controller

This commit is contained in:
Sam Lantinga committed 2023-07-16 15:57:32 -07:00
1 parent 08db0e8f64
commit 57820071a4
2 files changed
+167 -20

No files matched your search

+1 -1
View File
@@ -2423,7 +2423,7 @@ char *SetMappingName(char *mapping, const char *name)
/* Remove any commas, which are field separators in the mapping */
length = SDL_strlen(new_name);
while ((spot = SDL_strchr(new_name, ',')) != NULL) {
SDL_memmove(spot, spot + 1, length - (spot - new_name) - 1);
SDL_memmove(spot, spot + 1, length - (spot - new_name) + 1);
--length;
}