# GetRawAccelY

## Description

If an accelerometer exists, returns the current accelerometer reading for the Y direction in the range -1 to 1. This matches the screen coordinate system of positive being down. If no accelerometer exists this will always return 0. You can use the GetDirectionY 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 GetRawAccelY()

float agk::GetRawAccelY()