retroclash-lib-0.1.0.1: Code shared across the code samples in the book "Retrocomputing with Clash"
Safe HaskellNone
LanguageHaskell2010

RetroClash.PS2

Documentation

data PS2 dom Source #

Constructors

PS2 

Fields

samplePS2 :: forall dom. (HiddenClockResetEnable dom, KnownNat (ClockDivider dom (Microseconds 1))) => PS2 dom -> Signal dom (Maybe Bit) Source #

data KeyEvent Source #

Constructors

KeyPress 
KeyRelease 

Instances

Instances details
Eq KeyEvent Source # 
Instance details

Defined in RetroClash.PS2

Show KeyEvent Source # 
Instance details

Defined in RetroClash.PS2

Generic KeyEvent Source # 
Instance details

Defined in RetroClash.PS2

Associated Types

type Rep KeyEvent :: Type -> Type #

Methods

from :: KeyEvent -> Rep KeyEvent x #

to :: Rep KeyEvent x -> KeyEvent #

NFDataX KeyEvent Source # 
Instance details

Defined in RetroClash.PS2

type Rep KeyEvent Source # 
Instance details

Defined in RetroClash.PS2

type Rep KeyEvent = D1 ('MetaData "KeyEvent" "RetroClash.PS2" "retroclash-lib-0.1.0.1-6C0NRmttpJyFTfyHZLLyZM" 'False) (C1 ('MetaCons "KeyPress" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "KeyRelease" 'PrefixI 'False) (U1 :: Type -> Type))

data ScanCode Source #

Constructors

ScanCode KeyEvent KeyCode 

Instances

Instances details
Eq ScanCode Source # 
Instance details

Defined in RetroClash.PS2

Show ScanCode Source # 
Instance details

Defined in RetroClash.PS2

Generic ScanCode Source # 
Instance details

Defined in RetroClash.PS2

Associated Types

type Rep ScanCode :: Type -> Type #

Methods

from :: ScanCode -> Rep ScanCode x #

to :: Rep ScanCode x -> ScanCode #

NFDataX ScanCode Source # 
Instance details

Defined in RetroClash.PS2

type Rep ScanCode Source # 
Instance details

Defined in RetroClash.PS2

type Rep ScanCode = D1 ('MetaData "ScanCode" "RetroClash.PS2" "retroclash-lib-0.1.0.1-6C0NRmttpJyFTfyHZLLyZM" 'False) (C1 ('MetaCons "ScanCode" 'PrefixI 'False) (S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 KeyEvent) :*: S1 ('MetaSel ('Nothing :: Maybe Symbol) 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 KeyCode)))