Posted: 26th Sep 2022 8:20
I'm fairly certain this isn't possible in AppGameKit but thought I'd check before releasing my game - If anyone know how to re-detect joysticks after an AppGameKit app has been launched I'd love to hear!!

Thanks.
Posted: 26th Sep 2022 13:24
I've made a feature request on this exact thing as I'm facing the same issue. I need to be able to restart joystick detection for Steam Remote Play Together.
Posted: 28th Sep 2022 3:51
I believe you only have to redetect the joysticks not sure how you are detecting the joysticks

+ Code Snippet
 function detectJoystick()
	 i as integer
	 for i = 1 to 8
		 if GetRawJoystickExists(i) then exitfunction i
		
	next i
endfunction -1

Completerawjoystickdetection may be required if the above fails
Posted: 28th Sep 2022 11:04
@fubarpk, the problem is that joysticks are detected at the startup of an AppGameKit app, but using Steam Remote Play Together online players can only be added AFTER the app has been started on Steam but no more controllers can be detected after app startup. I just tried your function, having the controller plugged in at startup returns 1, plugging the controller in after startup returns -1.
Posted: 28th Sep 2022 20:20
One option might be to save off any information you might need, then use RunApp() to relaunch your application.
I guess you could notify the user that you were going to do that with a message screen or something.