mirror of
https://github.com/encounter/SDL.git
synced 2025-12-09 21:47:44 +00:00
Unified code to standardize joystick names
This commit is contained in:
@@ -125,7 +125,7 @@ IOS_AddMFIJoystickDevice(SDL_JoystickDeviceItem *device, GCController *controlle
|
||||
name = "MFi Gamepad";
|
||||
}
|
||||
|
||||
device->name = SDL_strdup(name);
|
||||
device->name = SDL_CreateJoystickName(0, 0, NULL, name);
|
||||
|
||||
if (controller.extendedGamepad) {
|
||||
GCExtendedGamepad *gamepad = controller.extendedGamepad;
|
||||
|
||||
Reference in New Issue
Block a user