Author Topic: Pen mode simulation using touchscreen  (Read 207 times)

Delphir

  • Trade Count: (0)
  • Newbie
  • *
  • Posts: 1
    • View Profile
Pen mode simulation using touchscreen
« on: April 24, 2022, 12:13:53 pm »
It would be great to have an option to simulate "pen mode" (when touchscreen acts as a mouse on the computer without pen support).
It looks like right now all the needed components already present in the TouchMousePointer, they just needs to be assembled together into a single flow:

1. Full screen mode
2. Relative mode
3. Left mouse click simulation (right now requires a second click on the touchscreen)
4. Touch movements "as mouse dragging"

so the idea is to automate "3. Left mouse click simulation" whenever the TOUCH_START event happens, and "release" the left mouse button whenever the TOUCH_END event happens.
If there were a TOUCH_MOVE events in between - this will result in something like if "mouse clicked on an object, object was dragged to the new position, mouse released".

Real usecase: Drawing with a stylus (on a touchscreen) in Slack app during calls (while sharing a screen).
Unfortunately Slack don't support touchscreens by default and their support says they don't have any plans for such support (who are these guys? :O ).

Share on Facebook Share on Twitter