input: optimizado el constructor
This commit is contained in:
@@ -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
|
||||
|
||||
@@ -89,7 +89,7 @@ private:
|
||||
|
||||
public:
|
||||
// Constructor
|
||||
Input(string file);
|
||||
Input(string file, bool verbose=true);
|
||||
|
||||
// Actualiza el estado del objeto
|
||||
void update();
|
||||
|
||||
Reference in New Issue
Block a user