pub fn input(
        &mut self,
        keycode: u32,
        key_state: WlKeyState,
        modifiers: Option<(u32, u32, u32, u32)>,
        serial: Serial,
        time: u32,
    ) {
        self.inner.with_focused_kbds(|kbd, _| {
            // key event must be sent before modifers event for libxkbcommon
            // to process them correctly
            kbd.key(serial.into(), time, keycode, key_state);
            if let Some((dep, la, lo, gr)) = modifiers {
                kbd.modifiers(serial.into(), dep, la, lo, gr);
            }
        });
    }
/// Send the input to the focused keyboards
Send the input to the focused keyboards
Send the input to the focused keyboards
pub fn input(
        &mut self,
        keycode: u32,
        key_state: WlKeyState,
        modifiers: Option<(u32, u32, u32, u32)>,
        serial: Serial,
        time: u32,
    ) {
        self.inner.with_focused_kbds(|kbd, _| {
            // key event must be sent before modifers event for libxkbcommon
            // to process them correctly
            kbd.key(serial.into(), time, keycode, key_state);
            if let Some((dep, la, lo, gr)) = modifiers {
                kbd.modifiers(serial.into(), dep, la, lo, gr);
            }
        });
    }
pub fn input ( & mut self , keycode : u32 , key_state : WlKeyState , modifiers : Option < ( u32 , u32 , u32 , u32 ) > , serial : Serial , time : u32 , ) { self . inner . with_focused_kbds ( | kbd , _ | { // key event must be sent before modifers event for libxkbcommon // to process them correctly kbd . key ( serial . into ( ) , time , keycode , key_state ) ; if let Some ( ( dep , la , lo , gr ) ) = modifiers { kbd . modifiers ( serial . into ( ) , dep , la , lo , gr ) ; } } ) ; }
Send the input to the focused keyboards
Send the input to the focused keyboards
&mut self
keycode
u32
key_state
WlKeyState
modifiers
Option<(u32, u32, u32, u32)>
serial
Serial
time
u32
&mut self
keycode
u32
key_state
WlKeyState
modifiers
Option<(u32, u32, u32, u32)>
serial
Serial
time
u32