fix(input): declutter the floating gamepad overlay (#2933)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-20 10:21:32 -05:00
1 parent f5d879f222
commit e58b463f54
9 files changed
+244 -30

No files matched your search

@@ -678,6 +678,18 @@ object SessionPrefs {
editor.putString("osc", mode).apply()
}
fun oscRearButtons(context: Context): Boolean = prefs(context).getBoolean("oscRearButtons", false)
fun setOscRearButtons(context: Context, shown: Boolean) {
prefs(context).edit().putBoolean("oscRearButtons", shown).apply()
}
fun oscTrackpads(context: Context): Boolean = prefs(context).getBoolean("oscTrackpads", false)
fun setOscTrackpads(context: Context, shown: Boolean) {
prefs(context).edit().putBoolean("oscTrackpads", shown).apply()
}
/** Draw Steam's touch layout for the game instead of DroidDeck's own. */
fun steamTouchLayout(context: Context): Boolean =
prefs(context).getBoolean("steamTouchLayout", prefs(context).getString("osc", null) == OSC_STEAM_TOUCH)