Xbox LIVE Indie Games

code sample details

Accelerometer

Submitted
8/4/2010
Code Sample

Description:

This sample shows how to read the accelerometer sensor on Windows Phone 7.

Sample Overview

Windows Phone 7 devices include a number of hardware sensors, one of which is the accelerometer. The accelerometer can be used to detect tilt, shaking, and other motion in three dimensions. This sample illustrates use of an accelerometer class to handle accelerometer data and to update the position of a sprite on the screen.


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

 

 

downloads

Framework

GS 4.0

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