Browse Source

* Make AWT mouse wheel events consistent with LWJGL

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8666 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
sha..rd 14 years ago
parent
commit
b2ea6e74d2
1 changed files with 2 additions and 2 deletions
  1. 2 2
      engine/src/desktop/com/jme3/input/awt/AwtMouseInput.java

+ 2 - 2
engine/src/desktop/com/jme3/input/awt/AwtMouseInput.java

@@ -64,7 +64,7 @@ import com.jme3.input.event.MouseMotionEvent;
  */
 public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListener, MouseMotionListener {
 
-    //public static int WHEEL_AMP = 40;   // arbitrary...  Java's mouse wheel seems to report something a lot lower than lwjgl's
+    public static int WHEEL_AMP = 40;   // arbitrary...  Java's mouse wheel seems to report something a lot lower than lwjgl's
 
     private static final Logger logger = Logger.getLogger(AwtMouseInput.class.getName());
 
@@ -257,7 +257,7 @@ public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListe
 
     public void mouseWheelMoved(MouseWheelEvent arg0) {
         int dwheel = arg0.getUnitsToScroll();
-        wheelPos -= dwheel;
+        wheelPos += dwheel * WHEEL_AMP;
         cursorMoved = true;
     }