pub fn button(&self, button: u32, state: ButtonState, serial: Serial, time: u32) {
        self.inner.with_focused_pointers(|pointer, _| {
            pointer.button(serial.into(), time, button, state);
            if pointer.as_ref().version() >= 5 {
                pointer.frame();
            }
        })
    }
/// Notify that a button was pressed
///
/// This will internally send the appropriate button event to the client
/// objects matching with the currently focused surface.
Notify that a button was pressed
This will internally send the appropriate button event to the client
objects matching with the currently focused surface.
Notify that a button was pressed This will internally send the appropriate button event to the client objects matching with the currently focused surface .
pub fn button(&self, button: u32, state: ButtonState, serial: Serial, time: u32) {
        self.inner.with_focused_pointers(|pointer, _| {
            pointer.button(serial.into(), time, button, state);
            if pointer.as_ref().version() >= 5 {
                pointer.frame();
            }
        })
    }
pub fn button ( & self , button : u32 , state : ButtonState , serial : Serial , time : u32 ) { self . inner . with_focused_pointers ( | pointer , _ | { pointer . button ( serial . into ( ) , time , button , state ) ; if pointer . as_ref ( ) . version ( ) >= 5 { pointer . frame ( ) ; } } ) }
Notify that a button was pressed
This will internally send the appropriate button event to the client
objects matching with the currently focused surface.
Notify that a button was pressed This will internally send the appropriate button event to the client objects matching with the currently focused surface .
&self
button
u32
state
ButtonState
serial
Serial
time
u32
&self
button
u32
state
ButtonState
serial
Serial
time
u32