Retrieve the latest event from the sensor, if available.
#include <sensor/libsensor.h>
int sensor_get_event(sensor_t *sensor, sensor_event_t *sensor_event)
BlackBerry 10.0.0
The sensor to access.
A pointer to a location where the function can store the event retrieved from the sensor.
If the latest event isn't available, this function returns EAGAIN.
This call is non-blocking.
EOK on success, EAGAIN if the latest event is not available, an errno value otherwise.