Hello,
I have following code
[java]
jmeCanvasContext.getCanvas().addMouseMotionListener(new MouseMotionListener() {
@Override
public void mouseDragged(MouseEvent e) {
}
@Override
public void mouseMoved(MouseEvent e) {
mousePosition.setX(e.getX());
mousePosition.setY(e.getY());
}
});
[/java]
but the mouseMoved method is never called. I found a similar issue on JME2.0 discussion forum and I can remember that you had to register an InputHandler somewhere. How does this work in JME3.0 please?
Thanks a lot.
Regards,
Equi
You can get the mouse position using InputManager.getMousePosition()