Browse Source

PSP: send initial SDL_JOYDEVICEADDED event

Wouter Wijsman 1 year ago
parent
commit
5d80179954
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;
 }