Details
-
Bug
-
Resolution: Done
-
Not Evaluated
-
None
-
5.0.0
-
None
-
Mac. I cannot compile or test this code on my Linux box, I must depend on the T&I process for ALL verification of this code.
-
0bb95b183b28208a9ecf88e25cc22b8086201a2b
Description
Sometime in the past (and probably in a Release no later than 10.4), Apple began to provide [theEvent buttonNumber] in the signatures for otherMouseDown:,
otherMouseDragged:, and otherMouseUp: .
Instead of mapping all such events to Qt::MiddleButton, we should be using [theEvent buttonNumber] to set and unset the correct Qt::MouseButtons value, allowing users to work with "gamer" mouse devices. Unsure of the maximum buttonNumber which OS-X might provide, I stopped at #16. Since LeftButton and RightButton occur as other Event types, "otherMouseDown:" and "otherMouseUp:" only work with buttonNumber == 3 through 16.