[gameprogrammer] Mouse look

Hey Guys,

I'm trying to implement mouse look in a java applet.  Because it's an
applet, i can't warp the mouse back to the center of the screen so the
player hits the problem of the mouse cursor hitting the edge of the window
and they can't turn any further that direction.

I have a semi-lame work around where you use right click to toggle between
mouse look and regular cursor mode so if you reach the edge of the screen,
you can right click, move your mouse back into the center of the window and
right click again to enter mouse look mode again.

I was wondering though, does anyone know or can think of any other cool
tricks to get mouse look working in such an environment?

Thanks!

Other related posts: