[][src]Struct sunrise_libuser::ps2::InnerKeyboard

pub struct InnerKeyboard {
    ipc_session: StaticServiceProxy,
    keys_queue: VecDeque<HidKeyboardState>,
}

Inner state of a managed keyboard.

Fields

ipc_session: StaticServiceProxy

The session to kbrd:u

keys_queue: VecDeque<HidKeyboardState>

The queue containing the keyboard state received from IPC.

Implementations

impl InnerKeyboard[src]

pub fn update_keys(&mut self)[src]

Update keys from the keyboard service.

fn try_read_cached_key(&mut self) -> Option<char>[src]

Try to read a key from the internal cache queue.

pub fn try_read_key(&mut self) -> Option<char>[src]

If a key press is pending, return its unicode representation. This can be used to implement poll-based or asynchronous reading from keyboard.

pub fn try_read_keystate(&mut self) -> Option<HidKeyboardState>[src]

If a keystate change is pending, return the raw keystate. This can be used to implement poll-based or asynchronous reading from keyboard.

Trait Implementations

impl Debug for InnerKeyboard[src]

Auto Trait Implementations

impl RefUnwindSafe for InnerKeyboard

impl Send for InnerKeyboard

impl Sync for InnerKeyboard

impl Unpin for InnerKeyboard

impl UnwindSafe for InnerKeyboard

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> SizedIPCBuffer for T[src]

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.