fix: el teclado había dejado de funcionar
This commit is contained in:
@@ -75,7 +75,7 @@ void Input::bindGameControllerButton(int index, inputs_e input, SDL_GameControll
|
||||
// Comprueba si un input esta activo
|
||||
bool Input::checkInput(inputs_e input, bool repeat, int device, int index)
|
||||
{
|
||||
if (!enabled || index >= numGamepads)
|
||||
if (!enabled)
|
||||
{
|
||||
return false;
|
||||
}
|
||||
@@ -132,7 +132,7 @@ bool Input::checkInput(inputs_e input, bool repeat, int device, int index)
|
||||
}
|
||||
}
|
||||
|
||||
if (gameControllerFound())
|
||||
if (gameControllerFound() && index < numGamepads)
|
||||
if ((device == INPUT_USE_GAMECONTROLLER) || (device == INPUT_USE_ANY))
|
||||
{
|
||||
if (repeat)
|
||||
|
||||
Reference in New Issue
Block a user