Hi Francesco,

It's been a while since I used OSG 1.x... so I can't answer you; but as 
osgART's source is available, I suggest you to "port" it so that it uses OSG 
2.6 or 2.7. The work would benefit all osgART users, and I guess this will not 
be very hard to do. Well I didn't use osgART so this only can be an assumption.

Sukender
PVLE - Lightweight cross-platform game engine - http://pvle.sourceforge.net/

Le Tue, 09 Dec 2008 12:45:06 +0100, Francesco Argese <[EMAIL PROTECTED]> a 
écrit:

> Hi all,
>
> I have written an application based on osgart 1.0 (that uses
> OpenScenegraph 1.2) and i'm trying to add mouse event support. To do
> so i have written a class derived from osgGA::GUIEventHandler and
> added the event Handler to the viewer.
>
> The handle works but i have noted some problems with events
> RIGHT_MOUSE_BUTTON and LEFT_MOUSE_BUTTON that don't work as i expect.
> Others events, such asPUSH, works very well. In particular when i
> launch the application the result is a wrong interpretation of the
> events. I have understood this problem with the following simple code
> in the "handle()"'s body:
>
>       int event = ea.getEventType();
>
>       switch(event)
>       {
>       case osgGA::GUIEventAdapter::LEFT_MOUSE_BUTTON:
>               printf("Evento PUSH generato\n");
>               break;
>       case osgGA::GUIEventAdapter::RIGHT_MOUSE_BUTTON:
>               printf("Evento RIGHT_MOUSE_BUTTON generato\n");
>               break;
>       }
>
> It prints wrong results using the mouse.
>
> Is this a known problem with 1.2 version? Or have i done some errors
> using the library?
>
> Thanks in advance
> Francesco Argese
> _______________________________________________
> osg-users mailing list
> [email protected]
> http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org
> 

_______________________________________________
osg-users mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-users-openscenegraph.org

Reply via email to