Function gvr_sys::gvr_controller_state_get_button_down [] [src]

pub unsafe extern "C" fn gvr_controller_state_get_button_down(
    state: *const gvr_controller_state,
    button: i32
) -> bool

Returns whether the given button was just pressed (transient).

@param state The controller state to get the button pressed data from. @return True iff the button specified by the 'state' parameter was just pressed, false otherwise.