Explorar o código

Generate the correct name for ASTRO Gaming controllers

Manufacturer "ASTRO Gaming" and product "ASTRO C40" turns into "ASTRO C40"
Sam Lantinga %!s(int64=3) %!d(string=hai) anos
pai
achega
34f928abb7
Modificáronse 1 ficheiros con 1 adicións e 0 borrados
  1. 1 0
      src/joystick/SDL_joystick.c

+ 1 - 0
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" },