Discussion:
osgGA::GUIEventAdapter::MOVE: doesnt work
Matthias Asselborn
2009-05-31 22:12:09 UTC
Permalink
Hi,

a want to force a Pick each Mouse move


Code:

case osgGA::GUIEventAdapter::MOVE:
{
if ( pick( ea, pViewer, aa ) )
{
return true;
}
return false;
}
case osgGA::GUIEventAdapter::RELEASE:




i set a breakpoint under the case MOVE: expression
- no break -

i tested it in 2.8.0 and 2.9.3
what's wrong?

Thank you!

Cheers,
Matthias

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13223#13223
Paul Martz
2009-06-01 00:51:57 UTC
Permalink
Are you holding the mouse button down? If so, you'll get a DRAG event,
right? (Is this not universal UI terminology?)

Paul Martz
Skew Matrix Software LLC
http://www.skew-matrix.com
+1 303 859 9466
Matthias Asselborn
2009-06-01 12:30:30 UTC
Permalink
iam holding the mouse button not down.

i want a pick each time i move my mouse!
i thought its implemented with : MOVE ...
but its not working

...

Thank you!

Cheers,
Matthias

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13254#13254
Robert Osfield
2009-06-01 12:56:29 UTC
Permalink
Hi Mathias,

I have just modified the osgpick example to check for MOVE events and
it works perfectly.

switch(ea.getEventType())
{
case(osgGA::GUIEventAdapter::MOVE):
{
osgViewer::View* view = dynamic_cast<osgViewer::View*>(&aa);
if (view) pick(view,ea);
return false;
}

I don't know what you've done wrong, but perhaps you can look at the
attached osgpick.cpp for reference.

Robert.


On Mon, Jun 1, 2009 at 1:30 PM, Matthias Asselborn
Post by Matthias Asselborn
iam holding the mouse button not down.
i want a pick each time i move my mouse!
i thought its implemented with : MOVE ...
but its not working
...
Thank you!
Cheers,
Matthias
------------------
http://forum.openscenegraph.org/viewtopic.php?p=13254#13254
_______________________________________________
osg-users mailing list
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
Matthias Asselborn
2009-06-01 13:17:38 UTC
Permalink
Thank you Robert

your example works perfect
this is exactly what i need
what osg version did you use?
did you change only code in the swith case section?

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13258#13258
Robert Osfield
2009-06-01 13:29:17 UTC
Permalink
On Mon, Jun 1, 2009 at 2:17 PM, Matthias Asselborn
Post by Matthias Asselborn
Thank you Robert
your example works perfect
this is exactly what i need
what osg version did you use?
did you change only code in the swith case section?
svn/trunk, but it's something that has worked forever.
Matthias Asselborn
2009-06-01 13:40:38 UTC
Permalink
ive fied this problem.

the reason was glut
ive forgotten to declare a passiveMouse Callback

sorry ... ;-)

now it works perfect ;-)

------------------
Read this topic online here:
http://forum.openscenegraph.org/viewtopic.php?p=13261#13261

Loading...