From ceff2e9be68c3170a8f373d75360fdda8a1e60e7 Mon Sep 17 00:00:00 2001 From: Alug Date: Mon, 17 Feb 2025 21:30:36 +0100 Subject: [PATCH] properly init numcontrollers --- src/sdl/i_system.c | 12 +++++------- src/sdl/i_video.c | 7 +++++-- 2 files changed, 10 insertions(+), 9 deletions(-) diff --git a/src/sdl/i_system.c b/src/sdl/i_system.c index 96a601c76..214d6c40d 100644 --- a/src/sdl/i_system.c +++ b/src/sdl/i_system.c @@ -1176,21 +1176,21 @@ void I_ShutdownJoystick(UINT8 index) { INT32 i; event_t event; - event.type=ev_keyup; + event.type = ev_keyup; event.data2 = 0; event.data3 = 0; lastjoybuttons[index] = lastjoyhats[index] = 0; // emulate the up of all joystick buttons - for (i=0;i