Click here to Skip to main content
15,879,095 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
I am doing a program and i have an object which is working fine with arrows to move forward and arrows to move sideways. Is it possible to use the motion controls on the windows phone 7 and when you tilt it forward it is like pressing the forward button and when you tilt it sideways it's like pressing the side button? if yes what controls should i use?
I am asking as I couldn't find anything that would help me on google.

Thank you in advance.
Posted
Updated 9-Oct-11 22:09pm
v2

use the accelerometer class in Microsoft.Devices.Sensors Namespace
http://msdn.microsoft.com/en-us/library/microsoft.devices.sensors.accelerometer(v=vs.92).aspx[^]
 
Share this answer
 
v4
Comments
DaveyM69 12-Oct-11 17:11pm    
Finally got the hyperlink to work!
Also, take a look at this example: How to: Get Data from the Accelerometer Sensor for Windows Phone

Sandeep.
 
Share this answer
 

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900