[−][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
impl Send for ScancodeSet1
impl Sync for ScancodeSet1
Blanket Implementations
impl<T> From for T
[src]
impl<T, U> TryFrom for T where
U: Into<T>,
[src]
U: Into<T>,
type Error = !
🔬 This is a nightly-only experimental API. (
try_from
)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 for T where
U: TryFrom<T>,
[src]
U: TryFrom<T>,
type Error = <U as TryFrom<T>>::Error
🔬 This is a nightly-only experimental API. (
try_from
)The type returned in the event of a conversion error.
fn try_into(self) -> Result<U, <U as TryFrom<T>>::Error>
[src]
impl<T, U> Into for T where
U: From<T>,
[src]
U: From<T>,
impl<T> Borrow for T where
T: ?Sized,
[src]
T: ?Sized,
impl<T> BorrowMut for T where
T: ?Sized,
[src]
T: ?Sized,
fn borrow_mut(&mut self) -> &mut T
[src]
impl<T> Any for T where
T: 'static + ?Sized,
[src]
T: 'static + ?Sized,