Hi Stephan, On Mon, Nov 22, 2010 at 4:01 PM, Stephan Maximilian Huber <[email protected]> wrote: > Here's the logic to feed multiple touch-points to a GUIEventAdapter: > > osg::ref_ptr<osgGA::GUIEventAdapter> osg_event(NULL); > for(int i = 0; i < numTouches; i++) > { > // get touch i and corrsponding phase, x and y > ... > // feed it to the osg_event > if (!osg_event) { > osg_event = _win->getEventQueue()->touchBegan(i, phase, x, y); > } else { > osg_event->addTouchPoint(i, phase, x, y); > } > } > > Hopefully it gets clearer now.
What happens with the touchDrag and touchEnded? Do these relate at all to the individual phase of each touch? It seems to be that there is an overlap of definition between the whole multi-touch event and the individual event. I do wonder if the multi-touch event list might be part of the global event state rather than an specific event. I don't have any answers I'm just trying to get my head out things. Robert. _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
