pub struct Keyboard {
pub shift_pressed: bool,
pub ctrl_pressed: bool,
pub alt_pressed: bool,
layout: KeyboardLayout,
logical_map: [u8; 128],
}Fields§
§shift_pressed: bool§ctrl_pressed: bool§alt_pressed: bool§layout: KeyboardLayout§logical_map: [u8; 128]Implementations§
Source§impl Keyboard
impl Keyboard
pub const fn new() -> Self
pub fn set_layout(&mut self, layout: KeyboardLayout)
pub const fn layout(&self) -> KeyboardLayout
Trait Implementations§
Auto Trait Implementations§
impl Freeze for Keyboard
impl RefUnwindSafe for Keyboard
impl Send for Keyboard
impl Sync for Keyboard
impl Unpin for Keyboard
impl UnsafeUnpin for Keyboard
impl UnwindSafe for Keyboard
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more