sub GetSpriteGravity(ByRef x, ByRef y)
Use this function for retrieving the global gravity vector.
Related:
SetSpriteGravity