How can I access tablet pen data via Python?
问题 I need to access a windows tablet pen data (such as the surface) via Python. I mainly need the position, pressure, and tilt values. I know how to access the Wacom pen data but the windows pen is different. There is a Python library named Kivy that can handle multi-touch but it recognizes my pen as a finger (WM_TOUCH) and not as a pen (WM_PEN). This is my Kivy code (that doesnt report pressure and tilt): from kivy.app import App from kivy.uix.widget import Widget class TouchInput(Widget): def