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
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))
{
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 <
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
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
>
>
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
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
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
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
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:
10 matches
Mail list logo