SDL: PSP: send initial SDL_JOYDEVICEADDED event

From 5d801799542ab4dc547142ba8f0afbf5a294e452 Mon Sep 17 00:00:00 2001
From: Wouter Wijsman <[EMAIL REDACTED]>
Date: Sun, 24 Mar 2024 22:58:28 +0100
Subject: [PATCH] PSP: send initial SDL_JOYDEVICEADDED event

---
 src/joystick/psp/SDL_sysjoystick.c | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/src/joystick/psp/SDL_sysjoystick.c b/src/joystick/psp/SDL_sysjoystick.c
index 3d7d53148c3db..9b60dfede9e48 100644
--- a/src/joystick/psp/SDL_sysjoystick.c
+++ b/src/joystick/psp/SDL_sysjoystick.c
@@ -96,6 +96,9 @@ static int PSP_JoystickInit(void)
         analog_map[127 - i] = -1 * analog_map[i + 128];
     }
 
+    /* Fire off a joystick add event */
+    SDL_PrivateJoystickAdded(0);
+
     return 1;
 }