Module

Zeta.DOM

#keyPressed

keyPressed :: Int -> Effect { keydownListener :: EventListener, keyupListener :: EventListener, signal :: Signal (read :: READ, write :: WRITE) Boolean }

#mouseButton

mouseButton :: Int -> Effect { mousedownListener :: EventListener, mouseupListener :: EventListener, signal :: Signal (read :: READ, write :: WRITE) Boolean }

#Touch

type Touch = { clientX :: Int, clientY :: Int, force :: Number, id :: String, pageX :: Int, pageY :: Int, radiusX :: Int, radiusY :: Int, rotationAngle :: Number, screenX :: Int, screenY :: Int }

#touch

touch :: Effect { signal :: Signal (read :: READ, write :: WRITE) (Array Touch), touchListener :: EventListener }

#tap

tap :: Effect { signal :: Signal (read :: READ, write :: WRITE) Boolean, touchListener :: EventListener }

#mousePos

mousePos :: Effect { mousemoveListener :: EventListener, signal :: Signal (read :: READ, write :: WRITE) { x :: Int, y :: Int } }

#animationFrame

animationFrame :: Effect { id :: RequestAnimationFrameId, signal :: Signal (read :: READ, write :: WRITE) Instant }

#windowDimensions

windowDimensions :: Effect { resizeListener :: EventListener, signal :: Signal (read :: READ, write :: WRITE) { h :: Int, w :: Int } }

Modules