[][src]Trait spectrusty::peripherals::KeyboardInterface

pub trait KeyboardInterface {
    pub fn get_key_state(&self) -> ZXKeyboardMap;
pub fn set_key_state(&mut self, keymap: ZXKeyboardMap); }

An interface for providing changes of a ZX Spectrum keyboard state to one of the ULA chipset emulators.

This trait is implemented by ControlUnit implementations which provide a Spectrum's keyboard interface.

Required methods

pub fn get_key_state(&self) -> ZXKeyboardMap[src]

Reads the current state of the keyboard.

pub fn set_key_state(&mut self, keymap: ZXKeyboardMap)[src]

Sets the state of the keyboard.

Loading content...

Implementors

impl<B, X> KeyboardInterface for Ula3<B, X>[src]

impl<B, X> KeyboardInterface for Ula128<B, X>[src]

impl<M, B, X, V> KeyboardInterface for Scld<M, B, X, V> where
    M: PagedMemory8k
[src]

impl<M, B, X, V> KeyboardInterface for Ula<M, B, X, V>[src]

impl<U> KeyboardInterface for UlaPlus<U> where
    U: Video + KeyboardInterface
[src]

Loading content...