Don't poll for joystick if none configured

This commit is contained in:
Adrien Moulin
2022-07-10 14:31:49 +02:00
parent 24f11448f2
commit 04cabaa43e

View File

@@ -107,6 +107,8 @@ void joystick_process()
{
int c, d;
if (!joystick_type) return;
SDL_JoystickUpdate();
for (c = 0; c < joysticks_present; c++)
{