Is there access to the iPhone accelerometer using Javascript?

前端 未结 5 513
心在旅途
心在旅途 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:27

    In the latest iOS update (4.2) the accelorometer is now accessible from Javascript.

    See: http://www.mobilexweb.com/blog/safari-ios-accelerometer-websockets-html5

提交回复
热议问题