5 ms·
MacBook Multitouch
- diN0bot 17y agois there a way to do this in python directly (not cppython)?
- evgen 17y agoIt does not appear that the multitouch bits are directly supported by the pyobjc bridge, but when wrapped in a framework they can be accessed via pyobjc. Check out Touche [http://nuigroup.com/forums/viewthread/2747/ http://nuigroup.com/forums/viewthread/2747/] for an alternative that might provide enough of a framework hook for pyobjc to work.
- quizbiz 17y agoHow does the old macbook know between 1 fingers and 2?
- jrnkntl 17y agoAlthough it isn't entirely clear at the source, I think this script only accounts for the macbooks that actually have a multitouch trackpad. With this script it's possible to read the input and do whatever you like with it.
- sfphotoarts 17y agoIndeed that is true, try compiling this on a MacBook without a trackpad that doesn't support Multitouch and the callback never fires.
- thomasfl 17y agoHow do I compile this thing?
- jmah 17y agoCopy the first code listing into "test.m", the second into "Makefile", and run make.
- alrex021 17y agoIf compiling with Xcode, don't forget to set Base SDK to "Current SDK" under Project -> Edit Project Settings. Also make sure you have CoreFoundation and MultitouchSupport frameworks associated with you project. If not, just right click project and click Add -> Existing Frameworks.
- jmah 17y agoWow, the trackpad detects at least 10 touches on my 2008 MacBook Pro. The angle property seems a bit too noisy to be useful, though.