Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Documentation
scanKeypad :: (KnownNat rows, KnownNat cols, IsActive rowAct, IsActive colAct, HiddenClockResetEnable dom) => Signal dom (Vec rows (Active rowAct)) -> (Signal dom (Vec cols (Active colAct)), Signal dom (KeyStates rows cols)) Source #
keypadEvents :: (KnownNat rows, KnownNat cols, HiddenClockResetEnable dom) => Signal dom (KeyStates rows cols) -> Signal dom (KeyEvents rows cols) Source #
firstJust2D :: (KnownNat rows, KnownNat cols) => Matrix (rows + 1) (cols + 1) (Maybe a) -> Maybe a Source #
inputKeypad :: (KnownNat rows, KnownNat cols, IsActive rowAct, IsActive colAct) => (HiddenClockResetEnable dom, KnownNat (ClockDivider dom (Milliseconds 5))) => Matrix (rows + 1) (cols + 1) a -> Signal dom (Vec (rows + 1) (Active rowAct)) -> (Signal dom (Vec (cols + 1) (Active colAct)), Signal dom (Maybe a)) Source #