key-state-0.0.0: Manage key and button states and statuses

Safe HaskellSafe
LanguageHaskell2010

KeyState

Documentation

data KeyState count Source #

Constructors

KeyState 

Fields

Instances

Eq count => Eq (KeyState count) Source # 

Methods

(==) :: KeyState count -> KeyState count -> Bool #

(/=) :: KeyState count -> KeyState count -> Bool #

Show count => Show (KeyState count) Source # 

Methods

showsPrec :: Int -> KeyState count -> ShowS #

show :: KeyState count -> String #

showList :: [KeyState count] -> ShowS #

updateKeyState Source #

Arguments

:: Num count 
=> count

Counter delta

-> KeyState count 
-> Bool

Touched

-> KeyState count