fix(ui): nom del mando en majuscules a la UI sense modificar el config

VectorText nomes admet ASCII en majuscules; els noms dels mandos (i el
git hash) passaven pel toUpperAscii local del service_menu, pero les
notificacions de hot-plug i el text del CYCLE de la pagina CONTROLS
es mostraven amb el case original. Mou el helper a un utils compartit i
l'aplica a tots els punts de display sense tocar gamepad_name al config.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-05-24 20:33:01 +02:00
parent 34be79192c
commit 10a54aef91
3 changed files with 29 additions and 15 deletions
+3 -2
View File
@@ -10,6 +10,7 @@
#include "core/locale/locale.hpp"
#include "core/system/notifier.hpp"
#include "core/utils/string_utils.hpp"
// Singleton
Input* Input::instance = nullptr;
@@ -417,7 +418,7 @@ auto Input::addGamepad(int device_index) -> std::string {
notifier->notifyInfo(localeSubstitute(
Locale::get().text("notification.gamepad_connected"),
"{name}",
name));
Utils::toUpperAscii(name)));
}
return name + " CONNECTED";
@@ -437,7 +438,7 @@ auto Input::removeGamepad(SDL_JoystickID id) -> std::string {
notifier->notifyInfo(localeSubstitute(
Locale::get().text("notification.gamepad_disconnected"),
"{name}",
name));
Utils::toUpperAscii(name)));
}
return name + " DISCONNECTED";