Fix multiple controller discovery (#614)

This commit is contained in:
Neolyum authored and GitHub committed 2026-10-12 11:45:00 +00:00
1 parent aa901c3902
commit d71178c955
3 files changed
+16 -1

No files matched your search

@@ -381,7 +381,12 @@ class SessionService : Service() {
val controllersOn = !File(Environment.getExternalStorageDirectory(), NO_PAD_SWITCH).exists()
SessionState.deckPad = false
deckBinds = emptyList()
if (controllersOn) addControllerEnvironment(guest, fakeInputDir, sessionDir)
if (controllersOn) {
addControllerEnvironment(guest, fakeInputDir, sessionDir)
// Steam enumerates /dev/input while it starts. Make every attached controller's
// discovery node exist after the rings and guest environment are ready.
SessionState.padBridge?.syncConnectedControllers()
}
// The user's own games, for the runtime's shortcuts writer to put in the client's library
// before the client starts (see frontend/AddedGames and droiddeck-steam-shortcuts).
if (steamHere) {