Somewhere down the road iOS-only code will not be accepted, and then we have tons of code already deployed which will never work on anything else, unless Apple's non-standard JS and webkit extensions are accounted for in other browsers.
This is hopeless and pathetic. And HN will love it.
http://demos.clikthis.com/ethershock/
I think they have an Android/iPhone companion app that works for these types of web apps.
iPhone = new Controller();
iPhone.on('touchstart', function(event) { /*...*/ }
That's the entire API ;)I'm in two minds over the use of QR codes here. I had two solutions to the problem of pairing browsers: as I do it now, I ask for a pairing code. Another, more hacky (but possibly nicer) solution is to assume that if a controller and a parent browser have the same external IP, you can assume that they want to pair up.
Anyway, kudos to the developers - it's a really cool idea, I think. If my code can help out at all, please go right ahead :) (also sorry for hijacking your thread)
We didn't use any accelerometer events, but touch events worked seamlessly on iOS and Android.
I solved the latency problem by using websockets. I know, it's not a widely used standard but was good enough for a weekend project.