[][src]Trait sunrise_libuser::keyboard::StaticServiceAsync

pub trait StaticServiceAsync {
    fn get_keyboard_event<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>
    ) -> FutureObj<'a, Result<HandleRef<'static>, Error>>;
fn read_keyboard_states<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        unknown_0: &'a mut [HidKeyboardState]
    ) -> FutureObj<'a, Result<u64, Error>>; fn dispatch<'a>(
        &'a mut self,
        work_queue: WorkQueue<'static>,
        cmdid: u32,
        buf: &'a mut [u8]
    ) -> FutureObj<Result<(), Error>> { ... } }

Keyboard interface

Required methods

fn get_keyboard_event<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>
) -> FutureObj<'a, Result<HandleRef<'static>, Error>>

Get an handle to an event triggered on keyboard update.

fn read_keyboard_states<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    unknown_0: &'a mut [HidKeyboardState]
) -> FutureObj<'a, Result<u64, Error>>

Read the x last pressed keys into the given buffer. A size is returned to indicate the number of states written in the buffer.

Loading content...

Provided methods

fn dispatch<'a>(
    &'a mut self,
    work_queue: WorkQueue<'static>,
    cmdid: u32,
    buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>

Handle an incoming IPC request.

Loading content...

Implementors

Loading content...