721
Support / Using the mouse to move the camera
« on: December 06, 2004, 09:55:20 pm »
mouse events is what you need to control the camera through the mouse, you have to use the functions to move the camera, but controled by the mouse, you need a Listener and get coordenates of the cursor on the screen. I Guess!!!.
If the event recieves (java.awt.event.MouseEvent evt) like parameter you can get the position of the cursor on the screen in pixeles by getX () and getY (), both returns an int value.
If the event recieves (java.awt.event.MouseEvent evt) like parameter you can get the position of the cursor on the screen in pixeles by getX () and getY (), both returns an int value.