mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-21 05:46:03 +00:00
Fix multiple controller discovery (#614)
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user