开发者

Problem detecting the anlge of the phone - Mango API

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

上一篇:

下一篇:

精彩评论

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

最新问答

问答排行榜