今回は、iPhone,ipod,ipad に内蔵されている加速度センサーを使って、x,y,zの加速度を取得する方法について説明します。
加速度センサーとは、自由落下に対するデバイスの加速度を計測します。1の値はデバイスに1G の重力がかかっていることを示します(1G の重力は、デバイスが静止状態の時に感じる地球の重力)。加速度センサーはデバイスの加速度を X、Y、および Z の3軸方向で計測します。
…
.htaccessに以下を記述してルートに設置
# Various rewrite rules.
<IfModule mod_rewrite.c>
RewriteEngine on
# Modify the RewriteBase if you are using Drupal in a subdirectory and
# the rewrite rules are not working properly.
RewriteBase /
# Rewrite URLs of the form 'index.php?q=x'.
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule ^(.*)$ index.php?q=$1 [L,QSA]
</IfModule>
参考:http://eru-net.jp/web/?itemid=58
graffiti on the web
この投稿へのコメント
コメントはまだありません。