[osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg
Glenn Waldron
gwaldron at gmail.com
Tue Feb 12 05:55:02 PST 2019
Kris,
You want to install an osgGA::GUIEventHandler, override the handle method,
and listen for the MOVE or DRAG events. DRAG fires when moving the mouse
with a button down.
Glenn Waldron / osgEarth
On Fri, Feb 8, 2019 at 6:03 AM Kris Bartowski <kpoloczek at vp.pl> wrote:
> Hi,
>
> I want to read the mouse location at any time, but unfortunately when i
> try to read it for example when event type is FRAME, it always gives me the
> last clicked mouse coordinates.
>
> Thank you!
>
> Cheers,
> Kris
>
> ------------------
> Read this topic online here:
> http://forum.openscenegraph.org/viewtopic.php?p=75598#75598
>
>
>
>
>
> _______________________________________________
> osg-users mailing list
> osg-users at lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.openscenegraph.org/pipermail/osg-users-openscenegraph.org/attachments/20190212/d24f787b/attachment.html>
More information about the osg-users
mailing list