funes-0.1.0.0
Safe HaskellNone
LanguageHaskell2010

Nes.Controller

Contents

Synopsis

Documentation

Monad

newtype Controller r a Source #

Constructors

MkC 

Fields

setStrobe :: Byte -> Controller r () Source #

Sets the strobe state if the byte's first bit is set

readButtonStatus :: Controller r Byte Source #

Returns 1 if the button at the buttonIdx is pressed, or 0 if not.

Increments the buttonIdx Always returns 1 when the offset if larger than the button count