mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-09 19:36:29 +00:00
Unified code to standardize joystick names
This commit is contained in:
@@ -75,7 +75,7 @@ extern "C"
|
||||
BString stick_name;
|
||||
joystick.GetControllerName(&stick_name);
|
||||
SDL_joyport[numjoysticks] = SDL_strdup(name);
|
||||
SDL_joyname[numjoysticks] = SDL_strdup(stick_name.String());
|
||||
SDL_joyname[numjoysticks] = SDL_CreateJoystickName(0, 0, NULL, stick_name.String());
|
||||
numjoysticks++;
|
||||
joystick.Close();
|
||||
}
|
||||
|
Reference in New Issue
Block a user