Login  Register

Re: Newt Mouse Event

Posted by gsxruk on Nov 12, 2012; 3:21pm
URL: https://forum.jogamp.org/Newt-Mouse-Event-tp4026853p4026888.html

gouessej wrote
gsxruk wrote
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.
There is no such method:
http://docs.oracle.com/javase/6/docs/api/index.html?java/awt/event/MouseWheelEvent.html
It appears the getPreciseWheelRotation() method was introduced in JDK7.  I'm using JDK7.  The javadoc here http://docs.oracle.com/javase/7/docs/api/

Sorry, should of mentioned that originally.