mirror of
https://github.com/Droid-Deck/DroidDeck.git
synced 2026-11-19 21:06:09 +00:00
Add Touch Off and compact session menu shortcuts (#196)
Add touch off mode and compact session menu shortcuts
This commit is contained in:
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) {
|
||||
|
||||
Reference in new issue
Block a user