diff --git a/source/game.cpp b/source/game.cpp index bb5ad4a..470bf54 100644 --- a/source/game.cpp +++ b/source/game.cpp @@ -1551,7 +1551,7 @@ void Game::renderScoreBoard() color_t color = {0, 0, 0}; // Si el jugador esta muerto, no pintes el fondo del marcador, así que pase por encima cuando sale despedido - if (mPlayer[0]->isAlive()) + //if (mPlayer[0]->isAlive()) mSpriteScoreBoard->render(); // SCORE diff --git a/source/input.cpp b/source/input.cpp index 41c36ed..7865895 100644 --- a/source/input.cpp +++ b/source/input.cpp @@ -1,5 +1,6 @@ #include "input.h" #include +#include // Constructor Input::Input(int source) @@ -185,16 +186,16 @@ bool Input::checkInput(Uint8 input, bool repeat) // Comprueba si hay un mando conectado bool Input::discoverGameController() { - if (SDL_NumJoysticks() < 1) + /*if (SDL_NumJoysticks() < 1) { printf("Warning: No joysticks connected!\n"); mGameControllerFound = false; + std::cout << "Warning: No joysticks connected!\n"; } - else + else*/ { // Carga el mando mGameController = SDL_GameControllerOpen(0); - mGameControllerFound = true; if (mGameController == NULL) { @@ -204,6 +205,9 @@ bool Input::discoverGameController() else { printf("%i joysticks were found.\n", SDL_NumJoysticks()); + std::cout << "joysticks were found!\n"; + mGameControllerFound = true; + //printf("%i buttons\n", SDL_JoystickNumButtons(mGameController)); // Obtiene el dispositivo de control háptico