[][src]Trait keytokey::USBKeyOut

pub trait USBKeyOut {
    fn send_keys(&mut self, keys: &[KeyCode]);
fn register_key(&mut self, key: KeyCode);
fn send_registered(&mut self);
fn send_empty(&mut self);
fn state(&mut self) -> &mut KeyboardState;
fn ro_state(&self) -> &KeyboardState;
fn debug(&mut self, s: &str);
fn bootloader(&mut self); fn send_unicode(&mut self, c: char) { ... }
fn send_string(&mut self, s: &str) { ... } }

the handlers use this trait to generate their output

Required methods

fn send_keys(&mut self, keys: &[KeyCode])

send these USB Keycodes concurrently rigth away.

fn register_key(&mut self, key: KeyCode)

register these USB keycodes to be send on .send_registered

fn send_registered(&mut self)

send registered keycodes (or an empty nothing-pressed status)

fn send_empty(&mut self)

helper that sends an empty status

fn state(&mut self) -> &mut KeyboardState

retrieve a mutable KeyboardState

fn ro_state(&self) -> &KeyboardState

fn debug(&mut self, s: &str)

fn bootloader(&mut self)

Loading content...

Provided methods

fn send_unicode(&mut self, c: char)

fn send_string(&mut self, s: &str)

send a utf-8 string to the host all characters are converted into unicode input!

Loading content...

Implementors

impl USBKeyOut for KeyOutCatcher[src]

Loading content...