[][src]Function gvr_sys::gvr_poll_event

pub unsafe extern "C" fn gvr_poll_event(
    gvr: *mut gvr_context,
    event_out: *mut gvr_event
) -> i32

Polls the event queue, populating the provided event if available while also popping it from the event queue.

Note that it is the caller's responsibility for querying the event queue in a timely fashion, as it will otherwise be flushed periodically.

@param gvr_context The current context. @param event_out The event to populate. This will be populated with a valid gvr_event iff the result is GVR_NO_ERROR. @return GVR_ERROR_NONE if an event was available, otherwise GVR_ERROR_NO_EVENT_AVAILABLE.