While loop for accelerometer or similar

Fullmetal99012

Senior Member
Nov 17, 2010
60
17
0
I am designing a novelty app for windows phone 7. I would like my project to use the accelerometer and detect when its tilted up or down. I know how to get an instance of the accelerometer, but I have no Idea how to generate a "calibration" reading, or how to perform an event while the phone is being tilted(i.e while the phone is tilted positive, add 10 to a number, so as long as the phone is tilted, the addition will keep happening), same will happen when the phone is tilted negative, but instead of addition, it will be subtraction. Is something like this possible. The microsoft documentation and starter kits don't really help with what I want to do, they seem to work with position of an object as its tilted.