Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / Re-Detect Joysticks after app launch?

Author
Message
DavidAGK
AGK Developer
10
Years of Service
User Offline
Joined: 1st Jan 2014
Location:
Posted: 26th Sep 2022 08: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.
AQUILLANTO - A side-scrolling platformer with super tight controls, 3 worlds to explore, hordes of monsters and a quest... Inspired by games on the Amiga computer
>>> WISHLIST ON STEAM!
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
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.
13/0
fubarpk
Retired Moderator
19
Years of Service
User Offline
Joined: 11th Jan 2005
Playing: AGK is my friend
Posted: 28th Sep 2022 03:51
I believe you only have to redetect the joysticks not sure how you are detecting the joysticks


Completerawjoystickdetection may be required if the above fails
PK
Cybermind
Valued Member
21
Years of Service
User Offline
Joined: 28th Nov 2002
Location: Denmark
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.
13/0
blink0k
Moderator
11
Years of Service
User Offline
Joined: 22nd Feb 2013
Location: the land of oz
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.

Login to post a reply

Server time is: 2024-04-26 04:03:57
Your offset time is: 2024-04-26 04:03:57