GetRawAccelX

Description

If an accelerometer exists, returns the current accelerometer reading for the X direction in the range -1 to 1. This matches the screen coordinate system of positive being to the right. If no accelerometer exists this will always return 0. You can use the GetDirectionX command to emulate a direction input. 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 GetRawAccelX()