diff -r 1b82a6d50a39 -r 537ffe280775 main/buttons.c --- 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;