360 degree continuous mouse movement

How does one register continuouse mouse movement in one direction?
For example: A simple raycasting game where one can pivot in place and view the world in 360 degrees using the mouse. Using MouseMotionListener, I believe MouseEvents stop being sent once the edge of the “screen” is hit, but for my usage I would like to know that the mouse is still being rolled in the same direction.
Is there anyway to determine this? I remember back when using C/C++ and Allegro there was a notion of “mickeys” which was independent of the screen’s X,Y coordinates of the cursor, but was rather a delta of the mouse’s motion. Anything like that, or a way to determine that?
Thanks a lot!

JInput could give you this. Or you could use a java.awt.Robot to reset the mouse position each frame and just record the difference from the center position.

Kev

Thank you so much for the quick response, kevglass. I went ahead and implemented the java.awt.Robot solution you had suggested. Just resetting the cursor every frame, and upon movement determine current relationship to the center. Works like a charm. Thanks a lot!

(However, it does seem sort of like a backwards way to get the required data.)