Add distinct mouse zero index label for drivers that do not support multimouse (#13000)

This commit is contained in:
Tony 2021-09-16 02:08:03 +03:00 committed by GitHub
parent 6a59dad08c
commit 5aafe9eb0c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -7406,11 +7406,15 @@ static void get_string_representation_mouse_index(rarch_setting_t *setting, char
if (!string_is_empty(device_name))
strlcpy(s, device_name, len);
else
else if (map > 0)
snprintf(s, len,
"%s (#%u)",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_NOT_AVAILABLE),
map);
else
snprintf(s, len,
"%s",
msg_hash_to_str(MENU_ENUM_LABEL_VALUE_DONT_CARE);
}
else
snprintf(s, len,