A Python script to implement long-click-to-right-click emulation on Linux. Root permission needed (or you need udev rules to allow your user to write / read from evdev)
python rce.py <name_of_your_tuchscreen>
xinput output to determine the name of your touchscreen
RCE_SCALE is used to set the scale factor of your touchscreen. (your touchscreen resolution can be significantly higher than your actual screen resolution, and your screen may also have high DPI). This will enlarge the allowed error threshold (when long-pressing you can't avoid some slight movement).
On surface pro 6 I set
evdev is different from the Xorg notion of the
evdev driver. You are perfectly fine if your Xorg configuration uses