[osg-users] How to set mouse position

Robert Osfield robert.osfield at gmail.com
Tue Apr 24 01:06:29 PDT 2018

Hi Julian,

On 23 April 2018 at 20:13, Julien Valentin <julienvalentin51 at gmail.com> wrote:
> I'm beginning the implementation of my own StandardManipulator
> and would like to make a classic fps controller.
> So mouse must stay centered all delta mouse pos be captured
> However I found out that requestWarpPointer posts a wrapMouse event both in Viewer and GraphicWindows implementations.
> it leads to duplication of the event (which is not so bad) but more dramatic, it prevent to recenter mouse without trigger an osgevent.
> Is it a desired behavior?

Yes.  If the mouse moves you want objects that depend upon mouse
position to wake up to the fact that it's moved using an event.

I can't work out what the problem you are having.


More information about the osg-users mailing list