accelerometer_read_forces()

Gets the G force for each axis.

Synopsis:

#include <bps/accelerometer.h>
 
BPS_API int accelerometer_read_forces(double *x,
                                      double *y,
                                      double *z) BPS_DEPRECATED

Since:

BlackBerry 10.0.0

Arguments:

x

The G force for the x axis.

y

The G force for the y axis.

z

The G force for the z axis.

Library:

libbps (For the qcc command, use the -l bps option to link against this library)

Description:

Deprecated:

Use the Sensor API (bps/sensor.h).

Returns:

BPS_SUCCESS or BPS_FAILURE