Function gvr_controller_state_get_button_down

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

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.