* Make AWT mouse wheel events consistent with LWJGL
git-svn-id: https://jmonkeyengine.googlecode.com/svn/trunk@8666 75d07b2b-3a1a-0410-a2c5-0572b91ccdca
This commit is contained in:
		
							parent
							
								
									5f87f820c9
								
							
						
					
					
						commit
						b2ea6e74d2
					
				| @ -64,7 +64,7 @@ import com.jme3.input.event.MouseMotionEvent; | |||||||
|  */ |  */ | ||||||
| public class AwtMouseInput implements MouseInput, MouseListener, MouseWheelListener, MouseMotionListener { | 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()); |     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) { |     public void mouseWheelMoved(MouseWheelEvent arg0) { | ||||||
|         int dwheel = arg0.getUnitsToScroll(); |         int dwheel = arg0.getUnitsToScroll(); | ||||||
|         wheelPos -= dwheel; |         wheelPos += dwheel * WHEEL_AMP; | ||||||
|         cursorMoved = true; |         cursorMoved = true; | ||||||
|     } |     } | ||||||
| 
 | 
 | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user