Function libinput_device_config_calibration_get_default_matrix
pub unsafe extern "C" fn libinput_device_config_calibration_get_default_matrix(
device: *mut libinput_device,
matrix: *mut f32,
) -> i32
Expand description
@ingroup config
Return the default calibration matrix for this device. On most devices, this is the identity matrix. If the udev property LIBINPUT_CALIBRATION_MATRIX is set on the respective udev device, that property’s value becomes the default matrix, see the libinput documentation for more details.
@param device The device to configure @param matrix Set to the array representing the first two rows of a 3x3 matrix as described in libinput_device_config_calibration_set_matrix().
@return 0 if no calibration is set and the returned matrix is the identity matrix, 1 otherwise
@see libinput_device_config_calibration_has_matrix @see libinput_device_config_calibration_set_matrix @see libinput_device_config_calibration_get_matrix