pynput icon indicating copy to clipboard operation
pynput copied to clipboard

Add tablet / touch / proximity / pressure API

Open JayFoxRox opened this issue 4 years ago • 2 comments

I'm trying to extend https://github.com/rfc2822/GfxTablet with cross-platform support, but pynput can't do pressure yet.

Some material that could be relevant for API design or implementation:

  • For uinput, see https://github.com/rfc2822/GfxTablet/blob/128060d724fd58a6d5b922b2c94422252c613fa8/driver-uinput/networktablet.c#L31-L51
  • For macOS, see: https://developer.apple.com/documentation/coregraphics/cgeventtype (tabletPointer and tabletProximity)

I'd like to see a cross-platform API to receive and emulate such state / events.

JayFoxRox avatar Jan 30 '21 11:01 JayFoxRox

I'd love to see that too. Since this project is mostly a wrapper the different lower implementations need to support this. Mostly the ctypes of the different systems. Seems rather difficult.

moesfeld avatar Feb 17 '21 14:02 moesfeld

I'm also interested in this, as I'm working a tool which needs to simulate a virtual graphics tablet with variable pen pressure and tilt.

Evidlo avatar Dec 26 '21 23:12 Evidlo