3 ms·
Hm, does it let you access the touch screen functionality?
by devinj 17y ago
Hm, does it let you access the touch screen functionality?
- BSeward 17y agoYes, there's a pretty comprehensive multitouch API available in JavaScript. See http://www.sitepen.com/blog/2008/07/10/touching-and-gesturing-on-the-iphone/ http://www.sitepen.com/blog/2008/07/10/touching-and-gesturin...
- compumike 17y agoYes. For a slightly unusual demo of this functionality, in October 2008, we released our "DIY iPhone-controlled R/C car" video tutorial: http://www.nerdkits.com/videos/rc_car/ http://www.nerdkits.com/videos/rc_car/ in which we used the iPhone Javascript API to capture touch/drag events, and sent them (via a laptop, and then a microcontroller) to a little toy car's transmitter. No SDK use or jailbreaking required at all. However, we had to rely on proprietary Javascript events, and had to include a laptop on ad-hoc wifi to relay the messages. Apple's restrictions certainly lead to major tradeoffs, but we were able to build something pretty neat and accessible regardless. As a side note, they've locked down both the dock connector and the Bluetooth interface very tightly. Just buying the $99 dev license doesn't allow you to develop for either of those interfaces -- they have a separate "Made for iPod" program for that. The $99 isn't an insurmountable barrier for hobbyists who really want to tinker, but the "Made for iPod" certification probably is. (Some companies are using the audio input/output to hack around this restriction.)
- raganwald 17y agoI'm extracting a jQuery plugin from my go program, it's here: http://github.com/raganwald/iGesture http://github.com/raganwald/iGesture Note that when I use the word "gesture," I am using it the way the HCI community uses it, to refer to strokes and combinations of strokes. iGesture is useful for implementing features like deleting things by "scrubbing" the screen, navigation by swiping the screen, and so forth.