Hi Gian, On 7/6/07, Gian Lorenzetto <[EMAIL PROTECTED]> wrote:
The spacebar event is caught by the manipulator – if you "throw" the model to make it spin, hitting space should stop the rotation. Basically, all events are pushed onto the OSG event queue by the calls to getEventQueue()->*. Internally, each event handler that has been added to the view (the manipulator, the stats handler etc) is given a chance to handle each event as it is taken off the queue. The catch is that some handlers deal with an event, then stop that event from begin passed onto any further handlers (typically, this is a good thing …).
In 2.0 onwards the event is actually passed on to all event handlers regardless to whether the event is already handled. It now the responsibility of the event handler to decide whether its happy to handle already handled events or not.
I've had a quick look at the latest SVN and it appears as though the key events are caught by the OnKey* handlers, but for some reason the stats are not being displayed … I don't have time to look further into this today, but I will over the weekend … unless some one else has any ideas first.
In SVN the event handlers have been cleaned up to check the event handled status, so the StatsHandler will ignore the 's' event if its already been handled. Placing the StatsHandler earlier in the event handler lists will allow it to work. Robert. _______________________________________________ osg-users mailing list osg-users@openscenegraph.net http://openscenegraph.net/mailman/listinfo/osg-users http://www.openscenegraph.org/