Hi guys! I am working on a project and I can't figure out a thing. I have a variable and I want to store in it a number depending on the phone's rotation. If the player tilts the phone to left, that number should decrement slowly til it hits a minimum. If the player tilts the phone to the right, the number should increment til it hits a maximum. Something like a spirit level but it doesn't need to be accurate at all since I am using it for a game. Help?
Comments
Look in the "hardware section" of the gideros examples on program startup menu or in
gideros/Examples/Hardware/Accelerometer/Accelerometer.gproj
Likes: antix