Get mobile orientation (tilt, left/right/up/down & compass)

  • 15 favourites

Attached Files

The following files have been attached to this tutorial:

.capx

Stats

1,703 visits, 2,580 views

Translations

This tutorial hasn't been translated.

Tools

Hi, I have just written a capx to display the mobiles orientation, the capx is fully commented.

It uses the touch.alpha, touch.beta and touch.gamma to find if the user is tilting their phone, up/down/left or right, I have added a simple compass also.

You have to enable preview over LAN to see this on mobile, or if you cant I have put an example here, which will work on most mobiles.

Link To Demo

.CAPX
  • 0 Comments

  • Order by
Want to leave a comment? Login or Register an account!