[][src]Struct dustbox::keyboard::Keyboard

pub struct Keyboard { /* fields omitted */ }

Methods

impl Keyboard[src]

Implements a PS/2 keyboard https://wiki.osdev.org/PS/2_Keyboard https://wiki.osdev.org/"8042"_PS/2_Controller

Usable test program for this is ../dos-software-decoding/demo-com-16bit/4sum/4sum.com

pub fn default() -> Self[src]

pub fn has_queued_presses(&self) -> bool[src]

pub fn add_keypress(&mut self, keycode: Keycode, modifier: Mod)[src]

pub fn get_status_register_byte(&self) -> u8[src]

pub fn consume_dos_standard_scancode_and_ascii(&mut self) -> (u8, u8)[src]

used by int 0x16 function 0x00 returns scancode, ascii, keypress

pub fn peek_dos_standard_scancode_and_ascii(&self) -> (u8, u8, Option<Keypress>)[src]

used by int 0x16 function 0x01 returns scancode, ascii, keypress

pub fn consume(&mut self, keypress: &Keypress)[src]

Trait Implementations

impl Component for Keyboard[src]

fn out_u16(&mut self, _port: u16, _data: u16) -> bool[src]

returns true if write was handled

impl Clone for Keyboard[src]

fn clone_from(&mut self, source: &Self)1.0.0[src]

Performs copy-assignment from source. Read more

Auto Trait Implementations

impl Send for Keyboard

impl Sync for Keyboard

Blanket Implementations

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

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

impl<T> From<T> for T[src]

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

type Error = Infallible

The type returned in the event of a conversion error.

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

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

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

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

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

impl<T> SetParameter for T

fn set<T>(&mut self, value: T) -> <T as Parameter<Self>>::Result where
    T: Parameter<Self>, 

Sets value as a parameter of self.