Add forgotten index to ready check

This commit is contained in:
Michael 2023-10-12 17:21:45 -04:00
parent 684dcb6947
commit 537b012dc6

View File

@ -1487,7 +1487,7 @@ static void InitDrmInput(void)
TraceLog(LOG_INFO, TextFormat("Device %s is an event joystick", entity->d_name)); TraceLog(LOG_INFO, TextFormat("Device %s is an event joystick", entity->d_name));
for (int i = 0; i < MAX_GAMEPADS; i++) for (int i = 0; i < MAX_GAMEPADS; i++)
{ {
if (CORE.Input.Gamepad.ready) if (CORE.Input.Gamepad.ready[i])
continue; continue;
InitDrmJoystick(i, path); InitDrmJoystick(i, path);