When running a VNC server, how can I distinguish between local input and remote mouse click events?

266 Views Asked by At

I have a computer with a touchscreen where users navigate an interface presented by a Python app. This computer runs a VNC server (x11vnc on Debian). Administrators sometimes assist the users to navigate the interface remotely via VNC (RealVNC Viewer on MacOS), clicking their mouse on the appropriate interface components.

Our touchscreen GUI uses PsychoPy* to draw graphical elements and collect input data (where users are touching the screen, whether it is inside or outside of relevant hit boxes), but have no way to distinguish between user input (local) and administrator assistance input (remote).

Is it possible to distinguish between local touches and remote VNC mouse click events?

If so, what approaches are available to the Python app that is presenting the GUI?


* A scientific research library popular in psychology and behavioral science, which I believe uses Pygame and Pyglet.

0

There are 0 best solutions below