AGK for Pascal
ContentsIndexHome
PreviousUpNext
TAgkRawAccelerator.Y Property

Returns the current accelerometer reading for the Y direction in the range -1 to 1.

Syntax
Pascal
class property Y: Single;

This matches the screen coordinate system of positive being down, but only when in the original portrait orientation. If no accelerometer exists this will always return 0.

Copyright (c) 2012. All rights reserved.