Hi Robert,
Am 22.11.10 16:48, schrieb Robert Osfield:
> I've just reviewed your changes and they really aren't too intrusive a
> change, right now I don't have any strong opinions, more in learning
> mode right now.
>
> From the EventQueue helper methods for generating multi-touch events
> it looks to me that it'd only generate separate events. To get a
> multi-touch event I presume in your iOS code you are creating
> GUIEventAdapter objects directly and then filling them in.
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.
cheers,
Stephan
_______________________________________________
osg-submissions mailing list
[email protected]
http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org