mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-12-16 03:15:38 +00:00
Added the ability to rename your controller
This commit is contained in:
@@ -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;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user