Is there access to the iPhone accelerometer using Javascript?

前端 未结 5 541
心在旅途
心在旅途 2021-01-01 23:21

I\'m starting to try and do some web based game programming for my iPhone, and other web enabled phones that my friends have, and was having a hard time finding information

5条回答
  •  没有蜡笔的小新
    2021-01-01 23:22

    If your are using iOS 4.2 or more, then you can do it: http://www.albertosarullo.com/blog/javascript-accelerometer-demo-source

提交回复
热议问题