main/buttons.c

branch
novnc
changeset 38
537ffe280775
parent 19
49e2960d4642
child 41
7639cfa6aec0
--- a/main/buttons.c	Thu May 02 11:57:07 2019 +0200
+++ b/main/buttons.c	Thu May 02 17:12:06 2019 +0200
@@ -9,10 +9,6 @@
 sButton				Buttons[MAXBUTTONS];	///< 40 buttons on a screen.
 int				level = 1;		///< Keyboard level.
 
-extern uint8_t			VNC_pointer_button;	///< Mouse buttons mask
-extern uint16_t			VNC_pointer_x;		///< Mouse coordinate X
-extern uint16_t			VNC_pointer_y;		///< Mouse coordinate Y
-
 const char 			*mashTypes[] = { "Infusion", "Temperature", "Decoction" };
 const char			*SSR2Types[] = { "Uit", "HLT of MLT", "HLT en MLT", "Idle" };
 
@@ -138,12 +134,7 @@
 	return rc;
     }
 
-    if (VNC_pointer_button & 0x07) {
-	v_pressed = true;
-	vx = VNC_pointer_x;
-	vy = VNC_pointer_y;
-	return -1;
-    } else if (v_pressed) {
+    if (v_pressed) {
 	rc = Buttons_Search(vx, vy);
 	v_pressed = false;
 	vx = vy = -1;

mercurial