mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-20 13:26:02 +00:00
fix(input): keep Steam's touch controller plugged while its layout is hidden
This commit is contained in:
1 parent
732c97831d
commit
b87da99d21
2 files changed
+18
-1
No files matched your search
@@ -5389,7 +5389,8 @@ class SessionActivity : ComponentActivity(), SurfaceHolder.Callback, com.droidde
|
||||
controls.releaseAll(); controls.visibility = View.GONE
|
||||
if (!plan.shown) { steam.cancelEditing(); steam.releaseAll() }
|
||||
steam.visibility = if (plan.shown) View.VISIBLE else View.GONE
|
||||
com.droiddeck.launcher.input.SteamTouchDevice.current?.plugged = plan.shown
|
||||
// Steam takes seconds to configure a newly plugged touch controller, so hiding the layout keeps it plugged.
|
||||
com.droiddeck.launcher.input.SteamTouchDevice.current?.plugged = true
|
||||
applyTouchRouting()
|
||||
return
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user