title: Mouse location in java
body: <p>I am developing a first person shooter in Java and I want to implement controls in which movement of the mouse rotates the player. However in Java, I can only get mouse coordinates by using <code>MouseListener</code> events, so the coordinates will stop changing once the mouse cursor leaves the monitor edge and I will be unable to turn the player's view.</p>
  
  <p>Any tips/suggestions on how to do that? Thanks.</p>