GetRawAccelZ

Description

If an accelerometer exists, returns the current accelerometer reading for the Z direction in the range -1 to 1. A positive Z value means the screen is facing upwards. If no accelerometer exists this will always return 0, there is no emulated command for the Z direction. If you have not used SetOrientationAllowed to select your desired orientation then this command will lock the device in the current orientation to prevent the accelerometer rotating the screen. You should use SetOrientationAllowed if you want to enable screen rotation when using the accelerometer.

Definition

float GetRawAccelZ()