input: optimizado el constructor

This commit is contained in:
2023-05-23 18:30:30 +02:00
parent bc017c1d55
commit 92aae07fd1
3 changed files with 6 additions and 7 deletions

View File

@@ -2,7 +2,7 @@
#include <iostream>
// Constructor
Input::Input(string file)
Input::Input(string file, bool verbose)
{
// Fichero gamecontrollerdb.txt
dbPath = file;
@@ -18,10 +18,11 @@ Input::Input(string file)
gcb.active = false;
gameControllerBindings.resize(INPUT_TOTAL, gcb);
verbose = true;
this->verbose = verbose;
enabled = true;
setDefaultBindings();
discoverGameController();
}
// Actualiza el estado del objeto