Some Eclipse Foundation services are deprecated, or will be soon. Please ensure you've read this important communication.
Bug 336624 - Cannot get simultaneous left and right mouse button in SWT.MouseMoveevents on Mac
Summary: Cannot get simultaneous left and right mouse button in SWT.MouseMoveevents on...
Status: RESOLVED FIXED
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.6.1   Edit
Hardware: Macintosh Mac OS X
: P3 normal (vote)
Target Milestone: 3.7 M6   Edit
Assignee: Scott Kovatch CLA
QA Contact: Silenio Quarti CLA
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-02-08 10:15 EST by riesem CLA
Modified: 2011-02-08 12:39 EST (History)
2 users (show)

See Also:


Attachments
Example code (1.06 KB, application/octet-stream)
2011-02-08 10:16 EST, riesem CLA
no flags Details

Note You need to log in before you can comment on or make changes to this bug.
Description riesem CLA 2011-02-08 10:15:44 EST
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
Comment 1 riesem CLA 2011-02-08 10:16:56 EST
Created attachment 188522 [details]
Example code
Comment 2 Scott Kovatch CLA 2011-02-08 12:32:15 EST
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.
Comment 3 Scott Kovatch CLA 2011-02-08 12:33:24 EST
I assumed you meant Cocoa, not Carbon. We won't be fixing this on Carbon, if it's a problem there.
Comment 4 riesem CLA 2011-02-08 12:39:31 EST
Yes, Cocoa is what I was looking at.