Re: [osg-users] clamp mouse cursor / position

2016-11-30 Thread Sebastian Schmidt
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

2016-08-10 Thread Sebastian Schmidt
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

2016-05-24 Thread Sebastian Schmidt

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

2016-05-23 Thread Florian GOLESTIN
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


[osg-users] clamp mouse cursor / position

2016-05-23 Thread Sebastian Schmidt
Hi,

I'm trying to keep the mouse cursor in a specific area, while dragging a widget.
(f.e. scrollbar, 2d stick).

I cannot use requestWarpPointer, because this will recursively call my 
mouseDrag event.

Maybe its not a good behaviour at all, but still i wonder if its possible.
... 

Thank you!

Cheers,
Sebastian

--
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=67194#67194





___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org