[][src]Function gvr_sys::gvr_controller_get_count

pub unsafe extern "C" fn gvr_controller_get_count(
    api: *mut gvr_controller_context
) -> i32

Returns the number (N) of controllers currently available.

Each controller can be identified by an index in the range [0, N), which can be passed to gvr_controller_state_update to set a gvr_controller_state instance to the state of the controller for that index.

@param api Pointer to a gvr_controller_context. @return The number of controllers currently available.