Language: HTML | XAML

Responding to motion and orientation sensors (XAML)

Applies to Windows and Windows Phone

Developers can create Windows Store apps that use sensors to detect and respond to a variety of user movements. For example, an accelerometer can detect when the user moves, or shakes, a device; an inclinometer can detect when the user tilts a device, and a compass can detect when the user changes the device orientation.

Roadmap: How does this topic relate to others? See:

In this section

TopicDescription

Quickstart: Responding to user movement with the accelerometer (C#)

You can use the accelerometer to respond to user movement in an app written in C#.

Quickstart: Responding to user movement with the accelerometer (C++)

You can use the accelerometer to respond to user movement in an app written in C++.

Quickstart: Responding to user movement with the accelerometer (VB)

You can use the accelerometer to respond to user movement in an app written in Visual Basic.

Quickstart: Determining angular velocity with the gyrometer (C#)

You can use the gyrometer to detect changes in user movement with an app written in C#. Gyrometers complement accelerometers as game controllers: the accelerometer can measure linear motion while the gyrometer measures angular velocity or rotational motion.

Quickstart: Determining angular velocity with the gyrometer (C++)

You can use the gyrometer to detect changes in user movement with an app written in C++. Gyrometers complement accelerometers as game controllers: the accelerometer can measure linear motion while the gyrometer measures angular velocity or rotational motion.

Quickstart: Determining current heading with the compass (C#)

You can use the compass to determine the current heading with an app written in C#.

Quickstart: Determining current heading with the compass (C++)

You can use the compass to determine the current heading with an app written in C++. And, your app can retrieve the current heading with respect to magnetic, or true, north.

Quickstart: Determining pitch, roll, and yaw with the inclinometer (C#)

You can use the inclinometer to determine pitch, roll, and yaw with an app written in C#.

Quickstart: Determining pitch, roll, and yaw with the inclinometer (C++)

You can use the inclinometer to determine pitch, roll, and yaw with an app written in C#.

Quickstart: Retrieving the Quaternion and rotation matrix with the orientation sensor (C#)

You can use the Orientation sensor to retrieve a Quaternion and rotation matrix with an app written in C#. Developers typically use this data to control complex games.

Quickstart: Retrieving the Quaternion and rotation matrix with the orientation sensor (C++)

You can use the Orientation sensor to retrieve a Quaternion and rotation matrix with an app written in C++. Developers typically use this data to control complex games.

Quickstart: Determining device orientation with the SimpleOrientation sensor (C#)

You can use the SimpleOrientation sensor to determine device orientation with an app written in C#.

Quickstart: Determining device orientation with the SimpleOrientation sensor (C++)

You can use the SimpleOrientation sensor to determine device orientation with an app written in C#.

 

Related topics

Roadmap for creating Windows Store apps using C#, C++, or Visual Basic

 

 

Show:
© 2014 Microsoft