Files
vectorcraft/apps
dotCooCoo 29fa62b46c Windows: the Wintab wheel follows the driver's context notices
The tablet driver sends WT_CTXCLOSE and WT_INFOCHANGE to the window
procedure, and a sent message does not pass winit's message hook, so a
context the driver closed kept its handle and the wheel stopped reading.
The context's window now gets a window procedure in front of its own that
notes both notices. The next Wintab or pen message drops a closed context
or closes and reopens it after an information change, forgetting the
cached cursor ranges. A notice the reader causes by closing its own
context does not drop a later context with the same handle value.

A packet that WTPacket cannot read now starts the readings afresh, so a
pen message no longer takes a wheel value that may be stale.

Only the pen whose message last read the wheel clears the readings when
it leaves the window or detection range or its press is canceled; a
touch or another pen leaving keeps them.
2026-11-21 03:12:24 -08:00
..