... if you click the mouse and drag it, it freezes the game, doesn't render the actual mouse 'X, Y' coords anymore, but it still renders the FPS, map, etc.?
(I hope I'm not talking utter bullshit since I'm quite new to Java myself... can't blame me for trying :p)
If you are getting the X,Y - coordinates of the Mouse in your mouseMoved() Method you could simply call it in your mouseDragged() Method like so...
1 2 3 4 5 6 7 8 9
| @Override public void mouseDragged(MouseEvent m) { if (canDrag) { game.GameProcess(2); } else { mouseMoved(m); } } |
... and it will act like you just moved your Mouse. Hope that helps.
