Commit 34f928abb77220c51f3100cf4539a356de9c9a29

Sam Lantinga 2022-09-23T09:26:18

Generate the correct name for ASTRO Gaming controllers Manufacturer "ASTRO Gaming" and product "ASTRO C40" turns into "ASTRO C40"

1
2
3
4
5
6
7
8
9
10
11
12
diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 44ab529..8afd772 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -1863,6 +1863,7 @@ SDL_CreateJoystickName(Uint16 vendor, Uint16 product, const char *vendor_name, c
         const char *prefix;
         const char *replacement;
     } replacements[] = {
+        { "ASTRO Gaming", "ASTRO" },
         { "NVIDIA Corporation ", "" },
         { "Performance Designed Products", "PDP" },
         { "HORI CO.,LTD.", "HORI" },