Module

FRP.Event.Mouse

Package
purescript-behaviors
Repository
paf31/purescript-behaviors

#move Source

move :: Event { x :: Int, y :: Int }

Create an Event which fires when the mouse moves

#withPosition Source

withPosition :: forall a. Event a -> Event { pos :: Nullable { x :: Int, y :: Int }, value :: a }

Create an event which also returns the current mouse position.

#down Source

down :: Event Int

Create an Event which fires when a mouse button is pressed

#up Source

up :: Event Int

Create an Event which fires when a mouse button is released

#withButtons Source

withButtons :: forall a. Event a -> Event { buttons :: Array Int, value :: a }

Create an event which also returns the current mouse buttons.