[][src]Trait sunrise_libuser::keyboard::StaticService

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

Keyboard interface

Required methods

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

Get an handle to an event triggered on keyboard update.

fn read_keyboard_states(
    &mut self,
    manager: WorkQueue<'static>,
    unknown_0: &mut [HidKeyboardState]
) -> 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,
    manager: WorkQueue<'static>,
    cmdid: u32,
    buf: &'a mut [u8]
) -> FutureObj<Result<(), Error>>

Handle an incoming IPC request.

Loading content...

Implementors

Loading content...