[][src]Function wpilib_sys::bindings::HAL_GetJoystickDescriptor

pub unsafe extern "C" fn HAL_GetJoystickDescriptor(
    joystickNum: i32,
    desc: *mut HAL_JoystickDescriptor
) -> i32

Retrieves the Joystick Descriptor for particular slot.

@param desc [out] descriptor (data transfer object) to fill in. desc is filled in regardless of success. In other words, if descriptor is not available, desc is filled in with default values matching the init-values in Java and C++ Driverstation for when caller requests a too-large joystick index.

@return error code reported from Network Comm back-end. Zero is good, nonzero is bad.