Created
September 8, 2016 06:57
-
-
Save ikeryou/1c1f9ff1dbbab6ad4d31c6d2de9409b0 to your computer and use it in GitHub Desktop.
スマホの加速度取得
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
window.ondevicemotion = _eDevicemotion; | |
function _eDevicemotion(e) { | |
var accelX = e.acceleration.x; | |
var accelY = e.acceleration.y; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment