emscripten: fix reset quan fas exit. Eliminades les opcions d'eixida

This commit is contained in:
2026-04-13 17:57:54 +02:00
parent 9d70138855
commit a035fecb04
7 changed files with 30 additions and 12 deletions

View File

@@ -157,12 +157,13 @@ bool Input::checkAnyInput(int device, int index) {
// Construye el nombre visible de un mando
std::string Input::buildControllerName(SDL_Gamepad *pad, int padIndex) {
(void)padIndex;
const char *padName = SDL_GetGamepadName(pad);
std::string name = padName ? padName : "Unknown";
if (name.size() > 25) {
name.resize(25);
}
return name + " #" + std::to_string(padIndex);
return name;
}
// Busca si hay un mando conectado. Cierra y limpia el estado previo para