Allow dragging with middle button
This commit is contained in:
parent
1aedcb6dfa
commit
37b4df9f4c
3 changed files with 6 additions and 0 deletions
|
|
@ -107,6 +107,7 @@ class Dispatcher(private val activity: VncActivity) {
|
|||
"move-pointer" -> { _, cp, dx, dy -> defaultMode.doMovePointer(cp, dx, dy) }
|
||||
"remote-scroll" -> { sp, _, dx, dy -> defaultMode.doRemoteScroll(sp, dx, dy) }
|
||||
"remote-drag" -> { _, cp, dx, dy -> defaultMode.doRemoteDrag(PointerButton.Left, cp, dx, dy) }
|
||||
"remote-drag-middle" -> { _, cp, dx, dy -> defaultMode.doRemoteDrag(PointerButton.Middle, cp, dx, dy) }
|
||||
else -> { _, _, _, _ -> } //Nothing
|
||||
}
|
||||
}
|
||||
|
|
|
|||
|
|
@ -112,12 +112,14 @@
|
|||
<string-array name="double_tap_swipe_action_entries">
|
||||
<item>@string/pref_gesture_action_none</item>
|
||||
<item>@string/pref_gesture_action_remote_drag</item>
|
||||
<item>@string/pref_gesture_action_remote_drag_middle</item>
|
||||
<item>@string/pref_gesture_action_pan</item>
|
||||
<item>@string/pref_gesture_action_remote_scroll</item>
|
||||
</string-array>
|
||||
<string-array name="double_tap_swipe_action_values">
|
||||
<item>none</item>
|
||||
<item>remote-drag</item>
|
||||
<item>remote-drag-middle</item>
|
||||
<item>pan</item>
|
||||
<item>remote-scroll</item>
|
||||
</string-array>
|
||||
|
|
@ -125,12 +127,14 @@
|
|||
<string-array name="long_press_swipe_action_entries">
|
||||
<item>@string/pref_gesture_action_none</item>
|
||||
<item>@string/pref_gesture_action_remote_drag</item>
|
||||
<item>@string/pref_gesture_action_remote_drag_middle</item>
|
||||
<item>@string/pref_gesture_action_pan</item>
|
||||
<item>@string/pref_gesture_action_remote_scroll</item>
|
||||
</string-array>
|
||||
<string-array name="long_press_swipe_action_values">
|
||||
<item>none</item>
|
||||
<item>remote-drag</item>
|
||||
<item>remote-drag-middle</item>
|
||||
<item>pan</item>
|
||||
<item>remote-scroll</item>
|
||||
</string-array>
|
||||
|
|
|
|||
|
|
@ -135,6 +135,7 @@
|
|||
<string name="pref_gesture_action_pan">Pan local frame</string>
|
||||
<string name="pref_gesture_action_remote_scroll">Scroll remote content</string>
|
||||
<string name="pref_gesture_action_remote_drag">Drag remote content</string>
|
||||
<string name="pref_gesture_action_remote_drag_middle">Drag with middle button</string>
|
||||
<string name="pref_gesture_action_open_keyboard">Open keyboard</string>
|
||||
|
||||
<string name="pref_theme">Theme</string>
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue