fix(input): restore Steam and Quick Access shortcuts (#2948)

This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-11-20 14:42:52 -05:00
1 parent 3c0d25d83b
commit cb8e70b940
17 files changed
+145 -37

No files matched your search

@@ -664,11 +664,11 @@ object SessionPrefs {
prefs(context).getString("shape", null)
?: 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, steamSession: Boolean = false): String = when (val mode = prefs(context).getString("osc", OSC_AUTO)) {
/** Overlay visibility. Older builds also stored the Steam layout here. */
fun oscMode(context: Context, steamSession: Boolean? = null): 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
OSC_STEAM_QAM -> if (steamSession == false) OSC_AUTO else OSC_STEAM_QAM
OSC_STEAM_TOUCH -> if (steamSession == true) OSC_ALWAYS else OSC_AUTO
else -> OSC_AUTO
}