html - DeviceMotion event in javascript for the mobile web -


To capture the accelerometer on mobile safari, see how to use the DavisMotion event in javascript across the web For iPad or iPhone I just want to know how I can implement it in a website or if anything please give me a good description of how it works.

iOS API

Here's a sample:

Comments

Popular posts from this blog

mysql - BLOB/TEXT column 'value' used in key specification without a key length -

c# - Using Vici cool Storage with monodroid -

python - referencing a variable in another function? -