Re: [osg-users] The event handler does no receive more mouse move events if I hold any of the mouse button down.

2013-10-19 Thread Stephan Huber
Hi Julio,

Check osgGA::GUIEventAdapter::DRAG

cheers, Stephan



> Am 19.10.2013 um 15:29 schrieb "Julio Jerez" :
> 
> I am trying to write a function that allows me to "point click, pick and 
> Drag"  function for my application.
>  
> basically when I point to an object, the object is selected until I hold the 
> left mouse key down.  
> if I move the mouse the object should move to teh new mouse position, but 
> only when the mouse button is down.
>  
> The problems that as soon as I click the button, that's the last 
> osgGA::GUIEventAdapter::MOVE that I get
>  
>  
>   case osgGA::GUIEventAdapter::MOVE:
>   {
> static int xxx;
> xxx ++;
> dTrace (("%d\n", xxx));
>  
> MouseMove(ea, aa);
> break;
>   }
>  
>  
> Is there an option so the I keep getting more Move Events even when any 
> button is hold down?
>  
> Thanks.
> Julio
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


Re: [osg-users] The event handler does no receive more mouse move events if I hold any of the mouse button down.

2013-10-19 Thread Robert Osfield
Hi Julio,

Use the osgGA::GUIEventAdapter::DRAG for when you move the mouse with the
mouse buttons down.

Robert.


On 19 October 2013 14:29, Julio Jerez  wrote:

> I am trying to write a function that allows me to "point click, pick and
> Drag"  function for my application.
>
> ** **
>
> basically when I point to an object, the object is selected until I hold
> the left mouse key down.  
>
> if I move the mouse the object should move to teh new mouse position, but
> only when the mouse button is down.
>
> ** **
>
> The problems that as soon as I click the button, that's the last osgGA::
> GUIEventAdapter::MOVE that I get
>
> ** **
>
> ** **
>
>   case osgGA::GUIEventAdapter::MOVE:
>
>   {
>
> static int xxx;
>
> xxx ++;
>
> dTrace (("%d\n", xxx));
>
> ** **
>
> MouseMove(ea, aa);
>
> break;
>
>   }
>
> ** **
>
> ** **
>
> Is there an option so the I keep getting more Move Events even when any
> button is hold down?
>
> ** **
>
> Thanks.
>
> Julio
>
> ___
> osg-users mailing list
> osg-users@lists.openscenegraph.org
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
>
>
___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org


[osg-users] The event handler does no receive more mouse move events if I hold any of the mouse button down.

2013-10-19 Thread Julio Jerez
I am trying to write a function that allows me to "point click, pick and
Drag"  function for my application.

 

basically when I point to an object, the object is selected until I hold the
left mouse key down.  

if I move the mouse the object should move to teh new mouse position, but
only when the mouse button is down.

 

The problems that as soon as I click the button, that's the last
osgGA::GUIEventAdapter::MOVE that I get

 

 

  case osgGA::GUIEventAdapter::MOVE:

  {

static int xxx;

xxx ++;

dTrace (("%d\n", xxx));

 

MouseMove(ea, aa);

break;

  }

 

 

Is there an option so the I keep getting more Move Events even when any
button is hold down?

 

Thanks.

Julio

___
osg-users mailing list
osg-users@lists.openscenegraph.org
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org