I'm trying to port a Windows phone program to windows 8, but for orientation the Motion API is used to I have lines of code like the following
If Motion.IsSupported Then
motion = New Motion With {.TimeBetweenUpdates = Me.TargetElapsedTime}
End If
If motion IsNot Nothing Then
Try
motion.Start()
Catch
End Try
End If
Dim matrix As Matrix = motion.CurrentValue.Attitude.RotationMatrix
The closest I could find was OrientationSensor because it provides the rotation matrix. But I'm not sure since there are other sensors like the inclinometer, accelerometer, and so on. Which one should I use that would be the most direct port?