Robert Osfield
85bce8b8ad
From Stephan Huber, "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 "
2012-02-03 14:25:08 +00:00
..
2011-05-27 11:07:04 +00:00
2011-07-17 16:24:47 +00:00
2011-06-09 14:11:04 +00:00
2011-06-09 14:11:04 +00:00
2011-06-14 16:54:20 +00:00
2010-03-25 14:12:28 +00:00
2010-01-27 12:24:55 +00:00
2010-12-22 20:11:05 +00:00
2010-12-20 12:03:56 +00:00
2010-12-22 20:11:05 +00:00
2011-06-25 07:07:16 +00:00
2010-11-04 15:24:00 +00:00
2009-10-28 13:31:24 +00:00
2009-02-20 11:53:49 +00:00
2010-12-10 13:22:21 +00:00
2008-03-18 15:37:38 +00:00
2007-06-12 14:20:16 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2011-06-16 15:57:40 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2010-11-22 11:22:03 +00:00
2007-12-10 17:30:18 +00:00
2011-06-08 09:24:29 +00:00
2008-11-07 15:08:08 +00:00
2011-06-14 16:54:20 +00:00
2011-06-22 12:30:01 +00:00
2011-06-14 16:54:20 +00:00
2007-12-06 17:07:04 +00:00
2010-03-18 17:10:48 +00:00
2011-11-18 08:20:04 +00:00
2010-05-28 08:57:48 +00:00
2011-06-14 16:54:20 +00:00
2008-10-14 15:10:10 +00:00
2009-02-06 15:17:49 +00:00
2011-06-14 16:54:20 +00:00
2009-01-08 12:47:20 +00:00
2010-05-31 15:51:59 +00:00
2011-02-03 12:22:09 +00:00
2010-05-27 15:54:37 +00:00
2011-06-14 16:54:20 +00:00
2009-02-03 15:28:53 +00:00
2010-05-27 15:54:37 +00:00
2007-06-12 14:20:16 +00:00
2008-07-12 11:19:25 +00:00
2011-01-27 16:23:48 +00:00
2011-06-14 16:54:20 +00:00
2009-02-05 10:14:49 +00:00
2011-06-14 16:54:20 +00:00
2007-06-12 14:20:16 +00:00
2011-06-14 16:54:20 +00:00
2008-10-27 10:40:13 +00:00
2012-02-01 17:16:44 +00:00
2009-02-06 15:17:49 +00:00
2011-06-14 16:54:20 +00:00
2010-01-18 14:27:20 +00:00
2011-06-15 09:35:25 +00:00
2011-06-14 16:54:20 +00:00
2010-12-22 20:11:05 +00:00
2012-02-03 14:25:08 +00:00
2010-12-02 14:13:54 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:50:40 +00:00
2010-07-12 11:30:15 +00:00
2011-06-14 16:54:20 +00:00
2008-11-25 15:57:27 +00:00
2011-07-17 16:24:47 +00:00
2009-12-15 14:45:33 +00:00
2009-11-24 15:00:11 +00:00
2011-07-17 16:24:47 +00:00
2010-09-20 11:50:24 +00:00
2008-12-09 11:05:04 +00:00
2012-01-24 14:34:02 +00:00
2011-06-14 16:54:20 +00:00
2007-12-10 17:30:18 +00:00
2009-01-05 17:06:09 +00:00
2010-06-03 15:04:58 +00:00
2011-06-22 12:30:01 +00:00
2008-12-19 16:13:19 +00:00
2011-06-14 16:54:20 +00:00
2007-12-10 17:30:18 +00:00
2011-05-16 09:16:22 +00:00
2011-03-09 10:35:00 +00:00
2011-03-09 10:35:00 +00:00
2011-06-14 16:54:20 +00:00
2008-11-08 17:53:51 +00:00
2007-06-12 14:20:16 +00:00
2012-01-24 14:34:02 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2010-07-10 17:14:59 +00:00
2011-04-19 11:40:22 +00:00
2011-12-13 21:14:33 +00:00
2008-10-07 14:01:14 +00:00
2011-12-19 09:09:30 +00:00
2009-11-10 12:01:28 +00:00
2007-12-11 15:55:02 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2007-12-10 17:30:18 +00:00
2007-06-12 14:20:16 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2010-11-11 11:47:24 +00:00
2011-06-14 16:54:20 +00:00
2008-04-11 13:04:21 +00:00
2007-07-06 13:08:51 +00:00
2010-12-23 09:59:35 +00:00
2007-06-12 14:20:16 +00:00
2011-04-19 09:53:34 +00:00
2011-06-22 12:30:01 +00:00
2011-06-14 16:54:20 +00:00
2012-01-24 14:34:02 +00:00
2010-10-07 11:53:28 +00:00
2009-03-26 17:24:28 +00:00
2007-06-12 14:20:16 +00:00
2011-06-14 16:54:20 +00:00
2011-06-22 12:30:01 +00:00
2010-11-29 17:43:27 +00:00
2011-06-14 16:54:20 +00:00
2011-06-09 12:57:14 +00:00
2010-12-22 20:11:05 +00:00
2009-11-10 12:03:03 +00:00
2008-09-17 16:14:28 +00:00
2008-06-26 13:08:24 +00:00
2007-06-23 11:21:54 +00:00
2011-06-14 16:54:20 +00:00
2009-02-05 10:14:49 +00:00
2008-09-01 10:19:06 +00:00
2011-01-27 09:41:37 +00:00
2011-09-12 10:47:59 +00:00
2011-06-14 16:54:20 +00:00
2010-01-18 14:27:20 +00:00
2011-09-14 10:45:11 +00:00
2010-09-30 16:57:02 +00:00
2011-10-26 12:29:38 +00:00
2011-10-20 08:59:47 +00:00
2011-04-26 12:07:37 +00:00
2011-06-14 16:54:20 +00:00
2011-06-22 12:30:01 +00:00
2008-11-28 14:36:39 +00:00
2008-11-28 14:36:39 +00:00
2008-11-28 14:36:39 +00:00
2011-07-17 16:24:47 +00:00
2011-06-14 16:54:20 +00:00
2008-11-28 14:36:39 +00:00
2008-11-28 14:36:39 +00:00
2011-06-14 16:54:20 +00:00
2008-12-07 17:02:30 +00:00
2008-07-25 20:50:42 +00:00
2008-12-18 13:56:30 +00:00
2008-12-16 20:29:00 +00:00
2011-06-14 16:54:20 +00:00
2011-06-14 16:54:20 +00:00
2012-02-03 14:25:08 +00:00