Skip to main content

krun_add_input_device_fd

Function krun_add_input_device_fd 

Source
pub unsafe extern "C" fn krun_add_input_device_fd(
    ctx_id: u32,
    input_fd: c_int,
) -> c_int
Expand description

Creates a passthrough input device from a host /dev/input/* file descriptor. The device configuration will be automatically queried from the host device using ioctls.

Arguments: “ctx_id” - The krun context “input_fd” - File descriptor to a /dev/input/* device on the host

Returns: Zero on success or a negative error code otherwise.