http://bugs.winehq.org/show_bug.cgi?id=7316
--- Comment #8 from Mikolaj Zalewski mikolaj.zalewski@gmail.com 2007-08-28 20:52:04 --- Created an attachment (id=7863) --> (http://bugs.winehq.org/attachment.cgi?id=7863) SDK example programs
If someone is interested I attach example programs from the SDK. The tablet seems to behave differently if it is configured as an X input device (i.e. it works like a mouse) with "SendCoreEvents" in /etc/X11/xorg.conf or not. In the second case the syspress nearly works - with a frequent mouse moves the tablet presses are drawn. But the first case is more interesting as this is how newer distributions are automatically configured and what Windows apps expects - e.g. both syspress and Photoshop check for new packets in WM_MOUSE* event handlers.
So far I've found two problems. The first is that the touchpad of my laptop is wrongly detected as a tablet device. As Wine assumes there is one device thus there is also the same resolution and the resolution of the touchpad (1280x800) is used to calculate tablet events (resolution 10200x7400) what gives pixels out of the screen. The second is that syspress assumes that if the pen is on the tablet (i.e. pressure > 0) then also there is a button pressed. Probably there is how native works. Wine delivers packets with pressure>0 and buttons=0. Tomorrow I will try to look into it deeper.