Links2004 / arduinoVNC

a VNC Client for Arduino based on rfbproto
GNU General Public License v2.0
301 stars 57 forks source link

hide mouse cursor #8

Closed wasn-eu closed 6 years ago

wasn-eu commented 6 years ago

i have to drag the mouse cursor around. but woud like to just touch the region i want to klick at. when using my tablet to connect to the vnc server i can just klick the button and dont have to drag the cursor and klick then.

What am i doing wrong?

Links2004 commented 6 years ago

the mouse cursor is generated at the server side, (if you want to hide it configure your server). for Xorg there is a -nocursor option or you use unclutter.

you can send a mouse click at any point you want with

// button down
vnc.mouseEvent(x, y, 0b001); 

// button up
vnc.mouseEvent(lx, ly, 0b000);

if you use the touch example simple click where you want on the display.