orientation_event_get_direction()
Get the curent direction that the device is being held in.
Synopsis:
#include <bps/orientation.h>
BPS_API orientation_direction_t orientation_event_get_direction(bps_event_t *event)
Arguments:
- event
-
The event to get the direction from.
Library:
libbpsDescription:
The orientation_event_get_direction() function gets the current direction that the device is being held in from an ORIENTATION_INFO event.
Returns:
The current direction.