Fixed the name of the HIDAPI Joy-Con controller for consistency with other drivers

main
Sam Lantinga 2022-07-27 19:20:42 -07:00
parent 0f1be9401f
commit def60ce6fe
1 changed files with 2 additions and 2 deletions

View File

@ -372,7 +372,7 @@ HIDAPI_DriverSwitch_GetDeviceName(const char *name, Uint16 vendor_id, Uint16 pro
} }
if (product_id == USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_LEFT) { if (product_id == USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_LEFT) {
return "Nintendo Switch Joy-Con Left"; return "Nintendo Switch Joy-Con (L)";
} }
if (product_id == USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_RIGHT) { if (product_id == USB_PRODUCT_NINTENDO_SWITCH_JOY_CON_RIGHT) {
@ -380,7 +380,7 @@ HIDAPI_DriverSwitch_GetDeviceName(const char *name, Uint16 vendor_id, Uint16 pro
if (SDL_strncmp(name, "NES Controller", 14) == 0) { if (SDL_strncmp(name, "NES Controller", 14) == 0) {
return name; return name;
} }
return "Nintendo Switch Joy-Con Right"; return "Nintendo Switch Joy-Con (R)";
} }
if (product_id == USB_PRODUCT_NINTENDO_N64_CONTROLLER) { if (product_id == USB_PRODUCT_NINTENDO_N64_CONTROLLER) {