From 92a7ec7c0482cdc25ff7c5b7cf26b4ef2033d17b Mon Sep 17 00:00:00 2001 From: Iordan Iordanov Date: Wed, 8 May 2024 09:47:10 -0400 Subject: [PATCH] Added support for MotionEvent.ACTION_BUTTON_PRESS and MotionEvent.ACTION_BUTTON_RELEASE mouse actions. --- .../java/com/iiordanov/bVNC/input/TouchInputHandlerGeneric.java | 2 ++ 1 file changed, 2 insertions(+) diff --git a/bVNC/src/main/java/com/iiordanov/bVNC/input/TouchInputHandlerGeneric.java b/bVNC/src/main/java/com/iiordanov/bVNC/input/TouchInputHandlerGeneric.java index 803750264..b4234df1e 100644 --- a/bVNC/src/main/java/com/iiordanov/bVNC/input/TouchInputHandlerGeneric.java +++ b/bVNC/src/main/java/com/iiordanov/bVNC/input/TouchInputHandlerGeneric.java @@ -170,6 +170,7 @@ protected boolean handleMouseActions(MotionEvent e) { switch (action) { // If a mouse button was pressed or mouse was moved. case MotionEvent.ACTION_DOWN: + case MotionEvent.ACTION_BUTTON_PRESS: case MotionEvent.ACTION_MOVE: switch (bstate) { case MotionEvent.BUTTON_PRIMARY: @@ -193,6 +194,7 @@ protected boolean handleMouseActions(MotionEvent e) { break; // If a mouse button was released. case MotionEvent.ACTION_UP: + case MotionEvent.ACTION_BUTTON_RELEASE: switch (bstate) { case 0: if (e.getToolType(0) != MotionEvent.TOOL_TYPE_MOUSE) {