Re: Newt Mouse Event
Posted by
Sven Gothel on
Nov 11, 2012; 9:31pm
URL: https://forum.jogamp.org/Newt-Mouse-Event-tp4026853p4026865.html
On 11/11/2012 09:41 PM, gsxruk [via jogamp] wrote:
> Hi,
>
> Been looking into this a little more. It appears that the AWT mouse event
> also returns 0 for the getWheelRotation() method. However, there is a
> difference as follows:
>
> On the AWT mouse listener:
>
> 1. There is an additional method getPreciseWheelRotation() that returns a double.
> 2. If the mouse wheel is turned very slowly, this method returns 0.25 or -0.25
> for each step of wheel rotation. For each of these getWheelRotation returns 0.
> 3. On each 4th turn, getWheelRotation returns a 1 or -1. This happens every
> time so it appears to represent the addition of the precise wheel rotation.
>
> On the Newt mouse listener:
>
> 1. There is no method getPreciseWheelRotation() (at least that is accessible).
> 2. Again, if the mouse wheel is turned very slowly, a mouse event is received
> and getWheelRotation returns 0.
> 3. If the mouse wheel is turned slowly continuously, getWheelRotation
> continues to return 0. It appears to completely ignore all turns it deems too
> slow.
>
> I think this seems like strange behaviour on the Newt listener?
>
The following unit test / demo uses the mouse rotation to zoom
and it works on native NEWT on Linux/Windows here:
<
http://jogamp.org/deployment/jogamp-current/jogl-applet-runner-newt-GraphUISceneDemo01-napplet.html>
On OSX w/ CALayer, it does not - a bug in the AWT->NEWT mouse event translation,
read: simply missing.
Can you please produce a unit test exposing the bug you claim ?
This will make things much more clear.
Also pls add the mentioned detailed information Wiki/FAQ/Bugreport.
~Sven
> Thanks,