mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-22 06:15:58 +00:00
fix(input): preserve control visibility and routing
This commit is contained in:
1 parent
7c2955b058
commit
97e0251e6a
9 files changed
+103
-26
No files matched your search
@@ -665,9 +665,10 @@ object SessionPrefs {
|
||||
?: if (context.packageManager.hasSystemFeature("android.hardware.sensor.hinge_angle")) SHAPE_WIDE else SHAPE_AUTO
|
||||
|
||||
/** Auto, Always or Never. Older builds also stored the Steam layout and a buttons-only mode here. */
|
||||
fun oscMode(context: Context): String = when (val mode = prefs(context).getString("osc", OSC_AUTO)) {
|
||||
fun oscMode(context: Context, steamSession: Boolean = false): String = when (val mode = prefs(context).getString("osc", OSC_AUTO)) {
|
||||
OSC_ALWAYS, OSC_NEVER -> mode
|
||||
OSC_STEAM_QAM -> OSC_ALWAYS
|
||||
OSC_STEAM_TOUCH -> if (steamSession) OSC_ALWAYS else OSC_AUTO
|
||||
else -> OSC_AUTO
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user