Function gvr_sys::gvr_controller_state_get_battery_charging [] [src]

pub unsafe extern "C" fn gvr_controller_state_get_battery_charging(
    state: *const gvr_controller_state
) -> bool

Returns whether the controller battery is currently charging. This may not be real time information and may be slow to be updated. The last battery update time is available by calling gvr_controller_state_get_battery_timestamp.

@param state The controller state to get the battery charging state from. @return True iff the battery was charging at the last available update, false otherwise.