Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-26 Thread Kris Bartowski
Trajce Nikolov NICK wrote: > Hi Kris, > > > are you on windows? If so, you can force the Windows Manager to pass all > events to the osgView. Here is some snippet: > > > osgViewer::CompositeViewer::Windows wins;viewer->getWindows(wins); > while (!viewer->done()){ > #if

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-13 Thread Trajce Nikolov NICK
Hi Kris, are you on windows? If so, you can force the Windows Manager to pass all events to the osgView. Here is some snippet: osgViewer::CompositeViewer::Windows wins; viewer->getWindows(wins); while (!viewer->done()) { #if defined(_WIN32) MSG msg; if (::PeekMessage(,NULL,0,0,PM_NOREMOVE)) {

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-12 Thread Kris Bartowski
gwaldron wrote: > 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 <

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-12 Thread Glenn Waldron
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 wrote: > Hi, > > I want to read the mouse

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-12 Thread Kris Bartowski
kornerr wrote: > Hi. > > Not sure why you "read" it during FRAME events. I personally create a > class that: > * inherits osgGA::GUIEventHandler > * overrides its bool handle(const osgGA::GUIEventAdapter > , osgGA::GUIActionAdapter , osg::Object > *object, osg::NodeVisitor *visitor) method > >

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-09 Thread Kris Bartowski
Hi, Of course first which i tried was checking the mouse position on move events, but they weren't firing at all. Thank you! Cheers, Kris -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75613#75613

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-09 Thread Robert Osfield
Hi Kris, On Fri, 8 Feb 2019 at 12:46, Kris Bartowski wrote: > I read it during frame events, becouse i tought that maybe every frame the > current mouse position is updated. The OSG source code is a resource that you can use to answer all the questions you might have, so I would recommend just

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-08 Thread Kris Bartowski
Hi, I read it during frame events, becouse i tought that maybe every frame the current mouse position is updated. Thank you! Cheers, Kris -- Read this topic online here: http://forum.openscenegraph.org/viewtopic.php?p=75608#75608

Re: [osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-08 Thread michael kapelko
Hi. Not sure why you "read" it during FRAME events. I personally create a class that: * inherits osgGA::GUIEventHandler * overrides its bool handle(const osgGA::GUIEventAdapter , osgGA::GUIActionAdapter , osg::Object *object, osg::NodeVisitor *visitor) method bool handle(...) method is where you

[osg-users] How do I continuously read the mouse position as the mouse is moving, without a click event in osg

2019-02-08 Thread Kris Bartowski
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: