* Make AWT mouse wheel events consistent with LWJGL

git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8666 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
3.0
sha..rd 13 years ago
parent 5f87f820c9
commit b2ea6e74d2
  1. 4
      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;
}

Loading…
Cancel
Save