Community
Participate
Working Groups
Build Identifier: 3.6.1.v3659 If I attach a Listener for SWT.MouseMove events to a SWT Canvas, on Windows I can success fully query the event state mask for simultaneous left and right mouse buttons. On Mac the state mask never contains both the flag for button1 and button3. If they are clicked the same time button1 is the only one in the statemask. Reproducible: Always Steps to Reproduce: 1. Execute the attached file 2. press left, right, and both mouse buttons while moving 3. On Windows it will print "Hit!" for the last case. Not so for Mac
Created attachment 188522 [details] Example code
For some reason we were only getting the button state for certain kinds of native events. GetCurrentEventButtonState should always be used to get the button mask. Fixed > 20110208.
I assumed you meant Cocoa, not Carbon. We won't be fixing this on Carbon, if it's a problem there.
Yes, Cocoa is what I was looking at.