[][src]Struct pc_keyboard::ScancodeSet1

pub struct 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]

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> From for T[src]

impl<T, U> TryFrom for T where
    U: Into<T>, 
[src]

type Error = !

🔬 This is a nightly-only experimental API. (try_from)

The type returned in the event of a conversion error.

impl<T, U> TryInto for T where
    U: TryFrom<T>, 
[src]

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.

impl<T, U> Into for T where
    U: From<T>, 
[src]

impl<T> Borrow for T where
    T: ?Sized
[src]

impl<T> BorrowMut for T where
    T: ?Sized
[src]

impl<T> Any for T where
    T: 'static + ?Sized
[src]