Browse Source

PSP: send initial SDL_JOYDEVICEADDED event

(cherry picked from commit 5d801799542ab4dc547142ba8f0afbf5a294e452)
Wouter Wijsman 1 year ago
parent
commit
59b0a1dc65
1 changed files with 3 additions and 0 deletions
  1. 3 0
      src/joystick/psp/SDL_sysjoystick.c

+ 3 - 0
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;
 }