From d7e0c54dde1df08e543d2477f87df5574a28c718 Mon Sep 17 00:00:00 2001 From: Ivan Epifanov Date: Thu, 27 Jan 2022 10:29:45 +0300 Subject: [PATCH] PSVita: send initial SDL_JOYDEVICEADDED events --- src/joystick/vita/SDL_sysjoystick.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/joystick/vita/SDL_sysjoystick.c b/src/joystick/vita/SDL_sysjoystick.c index 3ef1fc178..aa52cd77f 100644 --- a/src/joystick/vita/SDL_sysjoystick.c +++ b/src/joystick/vita/SDL_sysjoystick.c @@ -147,7 +147,7 @@ int VITA_JoystickInit(void) // after the app has already started. SDL_numjoysticks = 1; - + SDL_PrivateJoystickAdded(0); // How many additional paired controllers are there? sceCtrlGetControllerPortInfo(&myPortInfo); @@ -157,6 +157,7 @@ int VITA_JoystickInit(void) { if (myPortInfo.port[i]!=SCE_CTRL_TYPE_UNPAIRED) { + SDL_PrivateJoystickAdded(SDL_numjoysticks); SDL_numjoysticks++; } }