Bug 172167 - Make Display.post(Event) support generating SWT.MouseWheel events
Summary: Make Display.post(Event) support generating SWT.MouseWheel events
Status: NEW
Alias: None
Product: Platform
Classification: Eclipse Project
Component: SWT (show other bugs)
Version: 3.2.1   Edit
Hardware: All All
: P3 enhancement (vote)
Target Milestone: ---   Edit
Assignee: Bogdan Gheorghe CLA
QA Contact:
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2007-01-30 09:32 EST by Gary Johnston CLA
Modified: 2019-09-06 16:03 EDT (History)
3 users (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Gary Johnston CLA 2007-01-30 09:32:18 EST
Currently, Display.post(Event) can generate user input events for SWT.MouseUp, MouseDown, MouseMove, KeyDown, & KeyUp.  But it does not support generating an SWT.MouseWheel event.  Please add this.
My use case is that I'm trying to eliminate a dependency on java.awt.Robot, which is what I currently use for generating mouse wheel input events.  I'm using Display.post(Event) for all other user input event generation.
Comment 1 Benjamin Pasero CLA 2007-01-30 09:41:51 EST
See also Bug 169552
Comment 2 Bogdan Gheorghe CLA 2007-01-31 09:44:34 EST
Nicholas, please look into this.
Comment 3 Steve Northover CLA 2007-03-13 18:02:55 EDT
This was fixed on Windows.  Did we ever get the code for the other platforms?
Comment 4 Nicholas Rajendram CLA 2007-03-14 10:06:34 EDT
For the mac and gtk, fixed in HEAD > feb 20 2007

Was not able to make it work for Motif because I couldn't get buttons 4 & 5 to work at all (even just manual clicks)... even after reading the SWT FAQ on this issue.
Comment 5 Nicholas Rajendram CLA 2007-03-14 10:10:41 EDT
whoops. ignore my last message =\ I intended to post it for the similar bug #172316

What I really meant was:

For the mac, fixed in HEAD > feb 20 2007

For GTK the code was added to head but intentionally commented because testing revealed that after posting a mouse wheel event the system may respond unpredictably to subsequent mouse actions (e.g. left click may stop working, right click acts as left click, and other strange things).

I couldn't get posting (let alone manual mouse wheel usage) to work in motif even after reading the SWT FAQ on this...
Comment 6 Gary Johnston CLA 2008-05-13 14:24:34 EDT
Any new news on this from the GTK or Motif front?
Comment 7 Eclipse Webmaster CLA 2019-09-06 16:03:48 EDT
This bug hasn't had any activity in quite some time. Maybe the problem got resolved, was a duplicate of something else, or became less pressing for some reason - or maybe it's still relevant but just hasn't been looked at yet.

If you have further information on the current state of the bug, please add it. The information can be, for example, that the problem still occurs, that you still want the feature, that more information is needed, or that the bug is (for whatever reason) no longer relevant.