Function input_sys::libinput_device_get_output_name [] [src]

pub unsafe extern "C" fn libinput_device_get_output_name(
    device: *mut libinput_device
) -> *const c_char

@ingroup device

A device may be mapped to a single output, or all available outputs. If a device is mapped to a single output only, a relative device may not move beyond the boundaries of this output. An absolute device has its input coordinates mapped to the extents of this output.

@note Use of this function is discouraged. Its return value is not precisely defined and may not be understood by the caller or may be insufficient to map the device. Instead, the system configuration could set a udev property the caller understands and interprets correctly. The caller could then obtain device with libinput_device_get_udev_device() and query it for this property. For more complex cases, the caller must implement monitor-to-device association heuristics.

@return The name of the output this device is mapped to, or NULL if no output is set