[gameprogrammer] Re: Mouse look

Can't you just grab the mouse so you get mouse events even when the
mouse is out side of the applet window?

Bob Pendleton

On Tue, Sep 9, 2008 at 1:16 PM, Alan Wolfe <alan.wolfe@xxxxxxxxx> wrote:
> 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!



-- 

+ Bob Pendleton: writer and programmer
+ email: Bob@xxxxxxxxxxxxx
+ web: www.GameProgrammer.com
+ www.Wise2Food.com

+--------------------------------------+

---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html


Other related posts: