SDL: Fill the correct member with the joystick ID in SDL_EVENT_JOYSTICK_UPDATE_COMPLETE

From 463c456b98699fcbc85340d3c134d7e60e1c6b26 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Tue, 8 Aug 2023 09:40:30 -0700
Subject: [PATCH] Fill the correct member with the joystick ID in
 SDL_EVENT_JOYSTICK_UPDATE_COMPLETE

---
 src/joystick/SDL_joystick.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/joystick/SDL_joystick.c b/src/joystick/SDL_joystick.c
index 9702a936bdc4..3bd043803c19 100644
--- a/src/joystick/SDL_joystick.c
+++ b/src/joystick/SDL_joystick.c
@@ -1953,7 +1953,7 @@ void SDL_UpdateJoysticks(void)
 
                 event.type = SDL_EVENT_JOYSTICK_UPDATE_COMPLETE;
                 event.common.timestamp = joystick->update_complete;
-                event.gdevice.which = joystick->instance_id;
+                event.jdevice.which = joystick->instance_id;
                 SDL_PushEvent(&event);
 
                 joystick->update_complete = 0;