Comments

Could you please explain how you go about compiling this code. I tried including the MultitouchSupport framework under PrivateFrameworks and I get "ld: framework not found MultitouchSupport"

— Al 2009-05-27

[Ah, I hadn't tried compiling it in Xcode. It appears to be silently prepending all paths with /Developer/SDKs/MacOS10.xxx/.
You need to change the 'Base SDK' setting (under Project settings) from 'MacOS 10.whatever' to 'Current OS'.]

Excelletn stuff.
Al, the sendo text is a make file, just put it into 'Makefile' in the same dir and type make. I am wrapping the code in a Java Wrapper, but im only geting the MT debug init message, not any MT events. I guess its somethine todo with threading (e.g. main thread) and perhaps how the java binary is (or not) dynamically binding with the Framework(s). I'm really not sure asthis is my 1st trip into native MacOS system dev/integration... (but im well seasoned elsewhere :)

Great stuff! The only problem is that when I play with the gestures, I tend to trigger Expose. Any idea how to deactivate it (at least the three- and four-finger gestures that aren't really all that useful to begin with)?

— Robert 2009-07-02

[For testing purposes, I just used killall -STOP Dock. This also disables Cmd-Tab and other system hotkeys; killall -CONT Dock to bring it back.]

Cool!

btw, can I use the code inside my own project? I'm gonna release the project under GPL because I use another library that uses GPL. By doing so, it means, I also release your code under GPL.

I make a TUIO wrapper over your code. So the multi-touch events from the touchpad will be forwarded as TUIO messages. These later can be used by any TUIO-enabled multi-touch application.

— Anonymous 2009-08-08

Very cool stuff! I build a TUIO wrapper around your code (http://github.com/fajran/tongseng/tree/master). In case you don't know, TUIO is a protocol that is usually used to create a multitouch application. More information here http://www.tuio.org/

— Fajran 2009-08-15

To get this to work on Snow Leopard/64-bit/in a more complicated program, I had to change MTDeviceRef to a long and add a second int argument to MTDeviceStart; otherwise, I would get crashes and/or no events.

— comex 2009-08-30

[I have updated the code. Thanks!]

Perhaps I am too foolish or new to make this work, but on Snow Leopard 10.6.1 when I put the source in 'test.m' and have a Makefile it makes, but I get a segmentation fault when I run it. fprintf tells me that the fault happens during

MTRegisterContactFrameCallback(dev, callback);

I have also tried copying the MultitouchSupport.framework folder in to the folder I'm working in, and to no avail.

Is this different in 10.6 then? Am I missing something?

— Jonathan 2009-09-21

[This was preemptively answered by comex, but his comment was stuck in the moderation queue. Sorry about that. See the previous comment.]