Hi Michael,
Thanks for the link and for writing a test program in the first place! I used yours along with this one:
http://www.markdouma.com/developer/MouseMovedvsTrackingAreas.zip
Turns out there is a bug in the tablet driver, but doesn't seem related to the symptoms I'm seeing:
- 2 otherMouseUp events each time that pen button assigned to middle mouse button is released
The major difference between a normal mouse and this tablet is that a normal mouse doesn't generate Moved or Dragged
events when it's stationary. The tablet, on the other hand, spits them out at 130-200 Hz even when the pen is as still
as I can hold it. I'm thinking that the constant stream of motion events is interfering with the "wait and see mode"
https://moi3d.com/forum/lmessages.php?webtag=MOI&msg=10550.7
Which might be supported by these results in MoI:
- Can't pan or orbit with MMB or RMB drag after doing LMB drag on Zoom button in v5 unless I first left click in
viewport
- Alt+Shift+LMB works for panning after dragging on zoom button
- Alt+Ctrl+LMB works for zooming after dragging on zoom button
- Alt+LMB works for orbiting after dragging on zoom button
I'm going to test this idea out with a Cintiq this week. Maybe it will turn out that the Cintiq will also generate
motion events at >100 Hz with the pen stationary, but MoI will work just fine. Or maybe the Cintiq won't generate motion
events at a high rate, but MoI will still have problems. Either would point at this idea being wrong.
But, I'm still puzzled by these problems in MoI:
- MMB drag pan exits if nib touches glass
- RMB drag orbit exits if nib touches glass
- Alt+MMB drag pan exits if nib touches glass
- Alt+RMB drag zoom exits if nib touches glass
They're weird because I don't see any events being generated when the nib touches the glass using your WacomTest. If I
comment out only otherMouseDragged (to prevent that stream of events from hiding everything else) and then move the pen
around on the test window with MMB held, I don't see any events if I press the nib against the glass. Also, if I comment
out everything except for otherMouseDragged it's not like I see the stream of otherMouseDragged events stop when I press
the nib to the glass. So, at most, pressing the nib to the glass is very briefly interrupting the stream of
otherMouseDragged events.
Strangely, doing the same test in Mark Douma's mouseMoved area, I see exactly 2 mouseMoved events every time I press nib
to glass. Any ideas?
Here are more results from the test programs that all match behavior of a normal mouse except the high rate of motion
events while stationary:
- 1 mouseEntered when pen enters tracking area
- 1 mouseExited when pen leaves tracking area
- 175 mouseDragged per second when nib pressed against glass and held still
- 0 otherMouseDragged or rightMouseDragged when nib pressed against and moved
- 160 otherMouseDragged per second when nib pressed against glass with MMB down
- 0 mouseDragged or rightMouseDragged when nib pressed against glass and moved with MMB held down
- 130 rightMouseDragged per second when nib pressed against glass with RMB down
- 0 mouseDragged or otherMouseDragged when nib pressed against glass and moved with RMB held down
- Peer