We closed this forum 18 June 2010. It has served us well since 2005 as the ALPHA forum did before it from 2002 to 2005. New discussions are ongoing at the new URL http://forum.processing.org. You'll need to sign up and get a new user account. We're sorry about that inconvenience, but we think it's better in the long run. The content on this forum will remain online.
IndexProgramming Questions & HelpProcessing Implementations › iPad/iPhone and multi-touch processingjs
Page Index Toggle Pages: 1
iPad/iPhone and multi-touch processingjs (Read 2797 times)
iPad/iPhone and multi-touch processingjs
Jun 1st, 2010, 9:14pm
 
Through some experimentation I have edited the processingjs source to make multi-touch data accessible to processing code in Safari.  Below are links to the files for the simple test I have done.  The example simply draws lines on an iPad in landscape.  The processing code defines touch objects based on the touch data sent from the modified processingjs code.

simple processing demo: http://jlyst.com/test/touch/index.html
modified processingjs: http://jlyst.com/test/touch/processingIPad2.js
unmodified init.js: http://jlyst.com/test/touch/init.js

I have been searching to see if someone has come up with a more elegant/efficient/robust solution, but haven't found it yet. Just throwing this out there if anyone is interested or knows of better solutions to using processing to program multitouch web apps.
Re: iPad/iPhone and multi-touch processingjs
Reply #1 - Jun 1st, 2010, 10:46pm
 
this is pretty cool. i just tested it on my iphone and it works great.
thx for sharing this!
Page Index Toggle Pages: 1