Mouslook

I recently discovered that there has been a "mousepressed" added to the mouselook of firstpersonhandler. This one allows to use one mousebutton(left) to rotate the view with the mouse or otherwise to just move the mousepointer.



I've adapted this so you can use a or'd combination of the mousebuttons you want to use for this behaviour.



The call would look like this:


firstPersonHandler.setButtonPressRequired(MouseLook.RIGHT
            | MouseLook.MIDDLE);



If anybody's interested i could post the code here, it's not really complicated....


Greetings

Sdyx
Sdyx said:

I recently discovered that there has been a "mousepressed" added to the mouselook of firstpersonhandler. This one allows to use one mousebutton(left) to rotate the view with the mouse or otherwise to just move the mousepointer.

I've adapted this so you can use a or'd combination of the mousebuttons you want to use for this behaviour.

The call would look like this:


firstPersonHandler.setButtonPressRequired(MouseLook.RIGHT
            | MouseLook.MIDDLE);



If anybody's interested i could post the code here, it's not really complicated....


Greetings

Sdyx


Hi there,
Ya it sounds exactly as I'm looking for. I just want to use mouse to pick and right mouse to rotate the camera. You mind to reveal the secret?

Hello. I know this is a very old topic, sorry for being a topic necrophiliac >.>



but I was wondering if there was anyone who could help me with this.

This is exactly what I want to do, (basically if the middle mouse button is clicked, then let you rotate the view, otherwise, just have the mouse pointer available for use)



Sorry I am just hoping someone can help me out. Thanks!