pub fn new_custom_config(
    idx: u32,
    name: &str,
    serial_name: &str,
    supported_events: BTreeMap<u16, virtio_input_bitmap>
) -> VirtioInputConfig
Expand description

Initializes a VirtioInputConfig object for a custom virtio-input device.

§Arguments

  • idx - input device index
  • name - input device name
  • serial_name - input device serial name
  • supported_events - Event configuration provided by a configuration file