Add Touch Off and compact session menu shortcuts (#196)

Add touch off mode and compact session menu shortcuts
This commit is contained in:
Kurt Himebauch authored and GitHub committed 2026-10-04 04:37:56 +00:00
1 parent 6b34c57c15
commit 6c1681c664
4 files changed
+53 -50

No files matched your search

@@ -64,9 +64,11 @@ object SessionPrefs {
const val TOUCH_AUTO = "auto"
const val TOUCH_PAD = "touchpad"
const val TOUCH_DIRECT = "direct"
const val TOUCH_OFF = "off"
/** How touch drives the pointer: a touchpad (drag moves it from where it is) or direct
* (it jumps under the finger). Auto = touchpad on the desktop, direct in Steam. */
* (it jumps under the finger). Auto = touchpad on the desktop, direct in Steam.
* Off ignores touches on the guest picture; Android controls remain usable. */
fun touchMode(context: Context): String = prefs(context).getString("touch", TOUCH_AUTO) ?: TOUCH_AUTO
fun setTouchMode(context: Context, mode: String) {