Working on support for various controllers

This commit is contained in:
2021-08-31 21:05:04 +02:00
parent 8d1cabb288
commit 42c0f19c68
6 changed files with 101 additions and 32 deletions

View File

@@ -4,8 +4,6 @@
// Contestar cuantos joystics ha detectado
// Preguntarlepor los joystics que ha encontrado para ir poniendolos en la variable de opciones
// Constructor
Input::Input(std::string file)
{
@@ -202,4 +200,10 @@ std::string Input::getControllerName(int index)
return mControllerNames[index];
else
return "";
}
// Obten el numero de mandos conectados
int Input::getNumControllers()
{
return mNumGamepads;
}