[gameprogrammer] Re: Mouse look
- From: "Madison McGaffin" <greyhill@xxxxxxxxx>
- To: gameprogrammer@xxxxxxxxxxxxx
- Date: Tue, 9 Sep 2008 18:52:02 -0400
Here's a workaround: have a "mouselook mode" and a "regular mode."
During mouselook mode, toggled by mouse button, key, etc. paint a
large, translucent circle in the center of the screen (or around the
cursor when mouselook is toggled). The position of the cursor within
this circle then acts like the displacement of a joystick, e.g.
keeping the mouse to the left of the center of the circle causes the
camera to pan left. If you've ever played around with Super Mario 64
on the DS, the touch screen controls act something like this.
On Tue, Sep 9, 2008 at 2: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!
---------------------
To unsubscribe go to http://gameprogrammer.com/mailinglist.html
- References:
- [gameprogrammer] Mouse look
- From: Alan Wolfe
Other related posts:
- » [gameprogrammer] Mouse look
- » [gameprogrammer] Re: Mouse look
- » [gameprogrammer] Re: Mouse look
- » [gameprogrammer] Re: Mouse look
- [gameprogrammer] Mouse look
- From: Alan Wolfe