Re: Newt Mouse Event

Posted by gsxruk on
URL: https://forum.jogamp.org/Newt-Mouse-Event-tp4026853p4026862.html

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?

Thanks,