Xbox LIVE Indie Games

code sample details


Code Sample

Sample Overview

This sample demonstrates a crucial scenario many games will want to enable: locking the screen to landscape or portrait mode. Also shown and explained is the more advanced scenario of responding to orientation changes from landscape to portrait or vice versa during gameplay, and changing the game’s orientation to match.

All content and source code downloaded from this page are bound to the Microsoft Permissive License (Ms-PL).







GS 4.0

find education content
var gDomain=''; var gDcsId='dcschd84w10000w4lw9hcqmsz_8n3x'; var gTrackEvents=1; var gFpc='WT_FPC'; /*<\/scr"+"ipt>");} /*]]>*/