[−][src]Struct sunrise_libuser::ps2::InnerKeyboard
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
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]
T: 'static + ?Sized,
impl<T> Borrow<T> for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut<T> for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> From<T> for T
[src]
impl<T, U> Into<U> for T where
U: From<T>,
[src]
U: From<T>,
impl<T> SizedIPCBuffer for T
[src]
fn size(&Self) -> usize
[src]
fn is_cool(usize, usize) -> bool
[src]
unsafe fn from_raw_parts<'a>(usize, usize) -> &'a T
[src]
unsafe fn from_raw_parts_mut<'a>(usize, usize) -> &'a mut T
[src]
impl<T, U> TryFrom<U> for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = Infallible
The type returned in the event of a conversion error.
fn try_from(value: U) -> Result<T, <T as TryFrom<U>>::Error>
[src]
impl<T, U> TryInto<U> for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,