emscripten: fix reset quan fas exit. Eliminades les opcions d'eixida
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user