Remove pointless if statement

This commit is contained in:
Michael 2023-10-10 19:26:30 -04:00
parent e9dbf45f13
commit c4bb0958ec

View File

@ -1948,11 +1948,7 @@ static void InitGamepad(void)
} }
ioctl(platform.gamepadStreamFd[i], JSIOCGNAME(64), &CORE.Input.Gamepad.name[i]); ioctl(platform.gamepadStreamFd[i], JSIOCGNAME(64), &CORE.Input.Gamepad.name[i]);
ioctl(platform.gamepadStreamFd[i], JSIOCGAXES, &CORE.Input.Gamepad.axisCount);
int axisCount = 0;
if (CORE.Input.Gamepad.ready[i]) ioctl(platform.gamepadStreamFd[i], JSIOCGAXES, &axisCount);
CORE.Input.Gamepad.axisCount = axisCount;
} }
} }
} }