orientation_get()

Get the current orientation direction and angle.

Synopsis:

#include <bps/orientation.h>
 
BPS_API int orientation_get(orientation_direction_t *direction, int *angle)

Arguments:

direction

The orientation direction.

angle

The orientation angle (in degrees).

Library:

libbps

Description:

The orientation_get() function gets the current orientation direction and angle of the device.

Returns:

BPS_SUCCESS upon success, BPS_FAILURE with errno set otherwise.