input: optimizado el constructor
This commit is contained in:
6
main.cpp
6
main.cpp
@@ -90,10 +90,8 @@ int main(int argc, char *argv[])
|
||||
screen->addNotifier(asset->get("notify.png"), asset->get("smb2.png"), asset->get("smb2.txt"), asset->get("notify.wav"));
|
||||
|
||||
// Inicializa el objeto input
|
||||
Input *input = new Input(asset->get("gamecontrollerdb.txt"));
|
||||
input->setVerbose(options->console);
|
||||
input->discoverGameController();
|
||||
string controllerName = input->getNumControllers() > 0 ? input->getControllerName(0) : "";
|
||||
Input *input = new Input(asset->get("gamecontrollerdb.txt"), options->console);
|
||||
string controllerName = input->getControllerName(0);
|
||||
|
||||
// Inicializa el texto
|
||||
Text *text = new Text(asset->get("smb2.txt"), asset->get("smb2.png"), renderer);
|
||||
|
||||
Reference in New Issue
Block a user