From 5f18cb571d0f6e65bb75f4d47862e32eef2f06af Mon Sep 17 00:00:00 2001 From: Mhammad Alloush Date: Wed, 21 Aug 2024 18:52:24 +0000 Subject: [PATCH] Update MousePadActivity to support doubletap drag This MR is a continuation of !439 , which changes the default behavior of the remote mouse plugin's drag and drop trigger to be a double-tap to drag, and adds a new SwitchPreference that toggles between the old (hold to drag) and new behavior. --- res/values/strings.xml | 3 ++ res/xml/mousepadplugin_preferences.xml | 9 ++++++ .../MousePadPlugin/MousePadActivity.java | 31 +++++++++++++------ 3 files changed, 33 insertions(+), 10 deletions(-) diff --git a/res/values/strings.xml b/res/values/strings.xml index fa8f1b56..2bd71e8b 100644 --- a/res/values/strings.xml +++ b/res/values/strings.xml @@ -85,6 +85,7 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted Scroll sensitivity gyro_mouse_enabled mouse_buttons_enabled + doubletap_drag_enabled Enable gyroscope mouse Gyroscope sensitivity gyro_mouse_sensitivity @@ -513,6 +514,8 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted Send Compose send Compose text + Double tap to drag + Hold to drag About diff --git a/res/xml/mousepadplugin_preferences.xml b/res/xml/mousepadplugin_preferences.xml index 15488dc1..e339da3b 100644 --- a/res/xml/mousepadplugin_preferences.xml +++ b/res/xml/mousepadplugin_preferences.xml @@ -90,6 +90,15 @@ SPDX-License-Identifier: GPL-2.0-only OR GPL-3.0-only OR LicenseRef-KDE-Accepted android:key="@string/mousepad_mouse_buttons_enabled_pref" android:title="@string/mousepad_mouse_buttons_title" /> + +