[][src]Struct pc_keyboard::ScancodeSet2

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

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

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]