diff --git a/src/rcore_drm.c b/src/rcore_drm.c index 5ff736d81..6bfeada62 100644 --- a/src/rcore_drm.c +++ b/src/rcore_drm.c @@ -1572,7 +1572,7 @@ static void PollDrmJoystickEvents() if (!CORE.Input.Gamepad.ready[i]) continue; - while (read(platform.gamepadStreamFd, &ev, sizeof(ev)) > 0) + while (read(platform.gamepadStreamFd[i], &ev, sizeof(ev)) > 0) { switch(ev.type) {