Re: [osg-users] clamp mouse cursor / position
Of course i ran into the problem that the internal mouse position ends at the screen borders, so that the mouse delta is zero for faster mouse dragging. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=69551#69551 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] clamp mouse cursor / position
So to offset the mouse cursor only to the delta of a center point i found a simple solution. In my case i wanted to hide the default cursor anyway, so didnt have to call requestWarpPointer. Also i couldnt find a clean/fast solution to solve the requestWarpPointer recursive call problem without overriding a lot of osg classes and functions. What i did was just call Code: GraphicsView::useCursor and move the custom cursor to the delta of my widget center. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=68326#68326 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] clamp mouse cursor / position
Flogo wrote: > Hi Sebastian, > > I'm not an expert, but in my case I've my own class overloading > osgGA::StandardManipulator. > In this case, while overriding the method handleMouseMove I can call > requestWarpPointer without recusiving call handleMouseMove. > > Is it what you are looking for? > > Best, > Florian Thanks. The problem is, that i still need to call a mousemove event to update the position of a widget (f.e. the pin button of a scrollbar). But with a custom StandardManipulator it might be possible to separate mousemove events from an event triggered by calling requestWarpPointer. -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67217#67217 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Re: [osg-users] clamp mouse cursor / position
Hi Sebastian, I'm not an expert, but in my case I've my own class overloading osgGA::StandardManipulator. In this case, while overriding the method handleMouseMove I can call requestWarpPointer without recusiving call handleMouseMove. Is it what you are looking for? Best, Florian -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=67214#67214 ___ osg-users mailing list osg-users@lists.openscenegraph.org http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org