input: el nombre de los mandos ya no se redimensiona ni se añade el índice
This commit is contained in:
4
main.cpp
4
main.cpp
@@ -97,7 +97,7 @@ int main(int argc, char *argv[])
|
|||||||
input->bindKey(INPUT_DOWN, SDL_SCANCODE_DOWN);
|
input->bindKey(INPUT_DOWN, SDL_SCANCODE_DOWN);
|
||||||
input->bindKey(INPUT_LEFT, SDL_SCANCODE_LEFT);
|
input->bindKey(INPUT_LEFT, SDL_SCANCODE_LEFT);
|
||||||
input->bindKey(INPUT_RIGHT, SDL_SCANCODE_RIGHT);
|
input->bindKey(INPUT_RIGHT, SDL_SCANCODE_RIGHT);
|
||||||
string controllerName = "";
|
string controllerName = "htfvhfhk";
|
||||||
int numControllers = input->getNumControllers();
|
int numControllers = input->getNumControllers();
|
||||||
if (numControllers > 0)
|
if (numControllers > 0)
|
||||||
{
|
{
|
||||||
@@ -278,7 +278,7 @@ int main(int argc, char *argv[])
|
|||||||
text->writeDX(TXT_CENTER | TXT_COLOR | TXT_STROKE, options->screen.nativeWidth / 2, text->getCharacterSize() * 7, "Pulsa 'N' para mostrar", 1, {240, 240, 240}, 1, {0, 0, 192});
|
text->writeDX(TXT_CENTER | TXT_COLOR | TXT_STROKE, options->screen.nativeWidth / 2, text->getCharacterSize() * 7, "Pulsa 'N' para mostrar", 1, {240, 240, 240}, 1, {0, 0, 192});
|
||||||
text->writeDX(TXT_CENTER | TXT_COLOR | TXT_STROKE, options->screen.nativeWidth / 2, text->getCharacterSize() * 8, "una notificacion", 1, {240, 240, 240}, 1, {0, 0, 192});
|
text->writeDX(TXT_CENTER | TXT_COLOR | TXT_STROKE, options->screen.nativeWidth / 2, text->getCharacterSize() * 8, "una notificacion", 1, {240, 240, 240}, 1, {0, 0, 192});
|
||||||
debugText->writeCentered(options->screen.nativeWidth / 2, options->screen.nativeHeight / 2, controllerName);
|
debugText->writeCentered(options->screen.nativeWidth / 2, options->screen.nativeHeight / 2, controllerName);
|
||||||
debugText->writeCentered(options->screen.nativeWidth / 2, (options->screen.nativeHeight / 2) + debugText->getCharacterSize(), inputPressed);
|
debugText->writeCentered(options->screen.nativeWidth / 2, (options->screen.nativeHeight / 2) + (debugText->getCharacterSize()*2), inputPressed);
|
||||||
|
|
||||||
// Vuelca el buffer en pantalla
|
// Vuelca el buffer en pantalla
|
||||||
screen->blit();
|
screen->blit();
|
||||||
|
|||||||
@@ -236,11 +236,11 @@ bool Input::discoverGameController()
|
|||||||
connectedControllers.push_back(pad);
|
connectedControllers.push_back(pad);
|
||||||
const string separator(" #");
|
const string separator(" #");
|
||||||
string name = SDL_GameControllerNameForIndex(i);
|
string name = SDL_GameControllerNameForIndex(i);
|
||||||
name.resize(25);
|
//name.resize(25);
|
||||||
name = name + separator + to_string(i);
|
//name = name + separator + to_string(i);
|
||||||
if (verbose)
|
if (verbose)
|
||||||
{
|
{
|
||||||
cout << name << endl;
|
cout << " -" << name << endl;
|
||||||
}
|
}
|
||||||
controllerNames.push_back(name);
|
controllerNames.push_back(name);
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user