[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 

 and move the custom cursor to the delta of my widget center.

Read this topic online here:

More information about the osg-users mailing list