iPhone library v1.30 includes a new type named Motion. With this object you can monitor the device orientation and acceleration (similar to B4A PhoneSensors).
The Motion object doesn't raise events. Instead you should use a timer to get the current values.
The values returned from Motion.GetAttitude are measured in radians.
The values returned from Motion.GetUserAcceleration are measured in G units (9.81 m / s^2).
The Motion object doesn't raise events. Instead you should use a timer to get the current values.
The values returned from Motion.GetAttitude are measured in radians.
The values returned from Motion.GetUserAcceleration are measured in G units (9.81 m / s^2).