How to determine orientation of Windows Phone 7 in XNA game?

Posted by Larsenal on Stack Overflow See other posts from Stack Overflow or by Larsenal
Published on 2010-03-18T21:45:55Z Indexed on 2010/03/18 21:51 UTC
Read the original article Hit count: 405

Filed under:
|

Similar to this question, but looking for an answer that will work in the context of an XNA game.

How can I determine whether the device is in a landscape or portrait orientation? The answer given in the general question relies upon functionality built into PhoneApplicationPage. AFAIK, you wouldn't normally be using that class within the context of an XNA game on Windows Phone 7.

© Stack Overflow or respective owner

Related posts about windows-phone-7

Related posts about XNA