[][src]Function keyboard_layouts::string_to_hid_packets

pub fn string_to_hid_packets(
    layout_key: &str,
    string: &str
) -> Result<Bytes, Error>

Create the sequence of HID packets required to type the given string. Impersonating a keyboard with the specified layout. These packets can be written directly to a HID device file.