Module

FRP.Event.Keyboard

Package
purescript-behaviors
Repository
paf31/purescript-behaviors

#down Source

down :: Event Int

Create an Event which fires when a key is pressed

#up Source

up :: Event Int

Create an Event which fires when a key is released

#withKeys Source

withKeys :: forall a. Event a -> Event { keys :: Array Int, value :: a }

Create an event which also returns the current pressed keycodes.