Safe Haskell | None |
---|---|
Language | Haskell2010 |
- data CoordinatePair = CoordinatePair {}
- data DimensionPair = DimensionPair {}
- keyPressed :: Int -> IO (Signal Bool)
- mouseButton :: Int -> IO (Signal Bool)
- data Touch = Touch {}
- touch :: IO (Signal [Touch])
- tap :: IO (Signal Bool)
- mousePos :: IO (Signal CoordinatePair)
- animationFrame :: IO (Signal Time)
- windowDimensions :: IO (Signal DimensionPair)
Documentation
keyPressed :: Int -> IO (Signal Bool) #
Creates a signal which will be true
when the key matching the given key
|code is pressed, and false
when it's released.
mouseButton :: Int -> IO (Signal Bool) #
Creates a signal which will be true
when the given mouse button is
|pressed, and false
when it's released.
touch :: IO (Signal [Touch]) #
A signal containing the current state of the touch device, as described by
|the Touch
record type.
A signal which will be true
when at least one finger is touching the
|touch device, and false
otherwise.
mousePos :: IO (Signal CoordinatePair) #
A signal containing the current mouse position.
animationFrame :: IO (Signal Time) #
A signal which yields the current time, as determined by now
, on every
|animation frame (see [https:/developer.mozilla.orgen-USdocsWebAPIwindow/requestAnimationFrame]).
windowDimensions :: IO (Signal DimensionPair) #
A signal which contains the document window's current width and height.