开发者

Problem detecting the anlge of the phone - Mango API

开发者 https://www.devze.com 2023-03-26 23:14 出处:网络
I\'ve started recently to study the windows phone 7.1 (Mango) SDK. Is there a simple way to get the angle of the phone relative to 开发者_运维技巧the ground (a close prediction is also good)?

I've started recently to study the windows phone 7.1 (Mango) SDK. Is there a simple way to get the angle of the phone relative to 开发者_运维技巧the ground (a close prediction is also good)?

Thanks, Alex


Yes. You use the Accelerometer. see:

http://msdn.microsoft.com/en-us/library/ff431810(v=vs.92).aspx and
http://msdn.microsoft.com/en-us/library/hh202984(v=vs.92).aspx

0

精彩评论

暂无评论...
验证码 换一张
取 消