|
The event manager keeps track of the mouse position and button
state, so using that should be both simpler and more reliable
than tracking it ourselves.
This loses the support for middle-clicking, but it's not clear
that this is needed anyway. (If necessary, it could be added to
the event manager.)
|