Struct smithay_client_toolkit::seat::keyboard::RepeatSource [−][src]
pub struct RepeatSource { /* fields omitted */ }
An event source managing the key repetition of a keyboard
It is given to you from map_keyboard
, and you need to
insert it in your calloop event loop if you want to have functionning key repetition.
If don’t want key repetition you can just drop it.
This source will not directly generate calloop events, and the callback provided to
EventLoopHandle::insert_source()
will be ignored. Instead it triggers the
callback you provided to map_keyboard
.
Trait Implementations
impl EventSource for RepeatSource
[src]
impl EventSource for RepeatSource
[src]type Metadata = WlKeyboard
type Metadata = WlKeyboard
Some metadata of your event source Read more
fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F
) -> Result<()> where
F: FnMut(Event<'static>, &mut WlKeyboard),
[src]
fn process_events<F>(
&mut self,
readiness: Readiness,
token: Token,
callback: F
) -> Result<()> where
F: FnMut(Event<'static>, &mut WlKeyboard),
[src]Process any relevant events Read more
fn register(&mut self, poll: &mut Poll, token: Token) -> Result<()>
[src]
fn register(&mut self, poll: &mut Poll, token: Token) -> Result<()>
[src]Register yourself to this poll instance Read more