Hi Asher

> In some of my application, I would like to detect when a clic + mouse move 
> event happen. My goal is to display on screen during the clic + mouse move 
> only objects bounding boxes.

see osgkeyboardmouse example,

have an additional flag for clicked stateL

pseudocode:
case(osgGA::GUIEventAdapter::PUSH):
{
clicked = true;
 _mx = ea.getX();
 _my = ea.getY();
return false;
}

and for
case(osgGA::GUIEventAdapter::MOVE):
{
_mxnew = ea.getX();
 _mynew = ea.getY();

if(clicked) && coord of mouse changed
{
perform your actions
}
else
{
 _mx = _mxnew;
 _my = _mxnew;
return false;
}
 case(osgGA::GUIEventAdapter::RELEASE):
{
clicked = false;
}


On Tue, May 21, 2013 at 1:00 AM, Asher Kamiraze
<[email protected]> wrote:
>
> Hi all,
>
> In some of my application, I would like to detect when a clic + mouse move 
> event happen. My goal is to display on screen during the clic + mouse move 
> only objects bounding boxes.
>
> Do you have any hint on how to do this? Maybe some tips starting from 
> osgviewer could help!
>
_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to