corregidos varios bugs
This commit is contained in:
@@ -125,14 +125,17 @@ void DefineButtons::checkInput()
|
||||
}
|
||||
|
||||
// Habilita el objeto
|
||||
void DefineButtons::enable(int index)
|
||||
bool DefineButtons::enable(int index)
|
||||
{
|
||||
if (input->getNumControllers() > 0)
|
||||
if (index < input->getNumControllers())
|
||||
{
|
||||
enabled = true;
|
||||
indexController = index;
|
||||
indexButton = 0;
|
||||
return true;
|
||||
}
|
||||
|
||||
return false;
|
||||
}
|
||||
|
||||
// Comprueba si está habilitado
|
||||
|
||||
Reference in New Issue
Block a user