Cambiados los printf por std::cout
This commit is contained in:
@@ -1025,8 +1025,8 @@ bool Title::updatePlayerInputs(int numPlayer)
|
||||
}
|
||||
else
|
||||
{ // Si hay mas de un dispositivo, se recorre el vector
|
||||
printf("numplayer:%i\n", numPlayer);
|
||||
printf("deviceindex:%i\n", deviceIndex.at(numPlayer));
|
||||
std::cout << "numplayer:" << numPlayer << std::endl;
|
||||
std::cout << "deviceindex:" << deviceIndex.at(numPlayer) << std::endl;
|
||||
|
||||
// Incrementa el indice
|
||||
if (deviceIndex.at(numPlayer) < numDevices - 1)
|
||||
@@ -1037,7 +1037,7 @@ bool Title::updatePlayerInputs(int numPlayer)
|
||||
{
|
||||
deviceIndex.at(numPlayer) = 0;
|
||||
}
|
||||
printf("deviceindex:%i\n", deviceIndex.at(numPlayer));
|
||||
std::cout << "deviceindex:" << deviceIndex.at(numPlayer) << std::endl;
|
||||
|
||||
// Si coincide con el del otro jugador, se lo intercambian
|
||||
if (deviceIndex.at(0) == deviceIndex.at(1))
|
||||
@@ -1065,7 +1065,7 @@ void Title::createTiledBackground()
|
||||
background = SDL_CreateTexture(renderer, SDL_PIXELFORMAT_RGBA8888, SDL_TEXTUREACCESS_TARGET, GAMECANVAS_WIDTH * 2, GAMECANVAS_HEIGHT * 2);
|
||||
if (background == nullptr)
|
||||
{
|
||||
printf("TitleSurface could not be created!\nSDL Error: %s\n", SDL_GetError());
|
||||
std::cout << "TitleSurface could not be created!\nSDL Error: " << SDL_GetError() << std::endl;
|
||||
}
|
||||
|
||||
// Crea los objetos para pintar en la textura de fondo
|
||||
@@ -1101,7 +1101,7 @@ void Title::createTiledBackground()
|
||||
// Comprueba cuantos mandos hay conectados para gestionar el menu de opciones
|
||||
void Title::checkInputDevices()
|
||||
{
|
||||
printf("Filling devices for options menu...\n");
|
||||
std::cout << "Filling devices for options menu..." << std::endl;
|
||||
input->discoverGameController();
|
||||
const int numControllers = input->getNumControllers();
|
||||
availableInputDevices.clear();
|
||||
@@ -1115,7 +1115,7 @@ void Title::checkInputDevices()
|
||||
temp.name = input->getControllerName(i);
|
||||
temp.deviceType = INPUT_USE_GAMECONTROLLER;
|
||||
availableInputDevices.push_back(temp);
|
||||
printf("Device %i:\t%s\n", (int)availableInputDevices.size(), temp.name.c_str());
|
||||
std::cout << "Device " << (int)availableInputDevices.size() << " - " << temp.name.c_str() << std::endl;
|
||||
}
|
||||
|
||||
// Añade el teclado al final
|
||||
@@ -1123,7 +1123,8 @@ void Title::checkInputDevices()
|
||||
temp.name = "KEYBOARD";
|
||||
temp.deviceType = INPUT_USE_KEYBOARD;
|
||||
availableInputDevices.push_back(temp);
|
||||
printf("Device %i:\t%s\n\n", (int)availableInputDevices.size(), temp.name.c_str());
|
||||
std::cout << "Device " << (int)availableInputDevices.size() << " - " << temp.name.c_str() << std::endl;
|
||||
std::cout << std::endl;
|
||||
}
|
||||
|
||||
// Recarga las texturas
|
||||
|
||||
Reference in New Issue
Block a user