mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 06:15:58 +00:00
fix(input): declutter the floating gamepad overlay (#2933)
This commit is contained in:
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)
|
||||
|
||||
Reference in new issue
Block a user