pynput
pynput copied to clipboard
Add tablet / touch / proximity / pressure API
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
andtabletProximity
)
I'd like to see a cross-platform API to receive and emulate such state / events.
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.
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.