[−][src]Struct pc_keyboard::ScancodeSet1
Contains the implementation of Scancode Set 1. See the OS dev wiki: https://wiki.osdev.org/PS/2_Keyboard#Scan_Code_Set_1
Trait Implementations
impl ScancodeSet for ScancodeSet1
[src]
fn advance_state(
state: &mut DecodeState,
code: u8
) -> Result<Option<KeyEvent>, Error>
[src]
state: &mut DecodeState,
code: u8
) -> Result<Option<KeyEvent>, Error>
Implements state logic for scancode set 1
Start: E0 => Extended >= 0x80 => Key Up <= 0x7F => Key Down
Extended: >= 0x80 => Extended Key Up <= 0x7F => Extended Key Down
fn map_scancode(code: u8) -> Result<KeyCode, Error>
[src]
Implements the single byte codes for Set 1.
fn map_extended_scancode(code: u8) -> Result<KeyCode, Error>
[src]
Implements the extended byte codes for set 1 (prefixed with E0)
Auto Trait Implementations
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, 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>,