Thanks Stephan, code all now merged and submitted to svn/trunk.
On 3 February 2012 11:43, Stephan Maximilian Huber <[email protected]> wrote: > Hi Robert, > > here's a replacement submission for os-x's multitouch support. It's > based on a recent svn revision (rev: 12937) > > cheers, > > Stephan > > > Am 10.11.11 10:28, schrieb Stephan Maximilian Huber: >> Hi RObert, >> >> please disregard my previous submission and use this instead, it fixes >> some inconsistencies between the IOS- and the OS X >> multi-touch-implementation. >> >> cheers, >> Stephan >> >> Am 07.11.11 14:57, schrieb Stephan Maximilian Huber: >>> Hi Robert, >>> >>> attached you'll find a first version of multi-touch-support for OS X (>= >>> 10.6), which will forward all multi-touch events from a trackpad to the >>> corresponding osgGA-event-structures. >>> >>> The support is switched off per default, but you can enable multi-touch >>> support via a new flag for GraphicsWindowCocoa::WindowData or directly >>> via the GraphicsWindowCocoa-class. >>> >>> After switching multi-touch-support on, all mouse-events from the >>> trackpad get ignored, otherwise you'll have multiple events for the same >>> pointer which is very confusing (as the trackpad reports absolute >>> movement, and as a mouse relative movement). >>> >>> I think this is not a problem, as multi-touch-input is a completely >>> different beast as a mouse, so you'll have to code your own >>> event-handlers anyway. >>> >>> While coding this stuff, I asked myself if we should refactor >>> GUIEventAdapter/EventQueue and assign a specific event-type for >>> touch-input instead of using PUSH/DRAG/RELEASE. This will make it >>> clearer how to use the code, but will break the mouse-emulation for the >>> first touch-point and with that all existing manipulators. What do you >>> think? I am happy to code the proposed changes. >>> >>> Additionally I created a small (and ugly) example osgmultitouch which >>> makes use of the osgGA::MultiTouchTrackballManipulator, shows all >>> touch-points on a HUD and demonstrates how to get the touchpoints from >>> an osgGA::GUIEventAdapter. >>> >>> There's even a small example video here: http://vimeo.com/31611842 >>> >>> the changes are based on current trunk, i hope you'll find this stuff >>> useful. >>> >>> cheers, >>> >>> Stephan >>> >>> >>> >>> _______________________________________________ >>> osg-submissions mailing list >>> [email protected] >>> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org >> >> >> >> _______________________________________________ >> osg-submissions mailing list >> [email protected] >> http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > > > _______________________________________________ > osg-submissions mailing list > [email protected] > http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org > _______________________________________________ osg-submissions mailing list [email protected] http://lists.openscenegraph.org/listinfo.cgi/osg-submissions-openscenegraph.org
