[−][src]Struct pc_keyboard::ScancodeSet2
Contains the implementation of Scancode Set 2. See the OS dev wiki: https://wiki.osdev.org/PS/2_Keyboard#Scan_Code_Set_2
Trait Implementations
impl ScancodeSet for ScancodeSet2
[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 2
Start: F0 => Release E0 => Extended xx => Key Down
Release: xxx => Key Up
Extended: F0 => Release Extended xx => Extended Key Down
Release Extended: xxx => Extended Key Up
fn map_scancode(code: u8) -> Result<KeyCode, Error>
[src]
Implements the single byte codes for Set 2.
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 ScancodeSet2
impl Sync for ScancodeSet2
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,