[osg-users] clamp mouse cursor / position

Sebastian Schmidt herrdersuppen at gmail.com
Wed Aug 10 00:05:02 PDT 2016


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








More information about the osg-users mailing list