spice-0.1.2.1: An FRP-based game engine written in Haskell.

Safe HaskellNone
LanguageHaskell2010

FRP.Spice.Input.Mouse

Description

The mouse (button) specific section of input.

Synopsis

Documentation

buttons :: [MouseButton] Source

A list of all mouse buttons available via the GLFW api.

externals :: IO (Map MouseButton (Signal Bool, Bool -> IO ())) Source

A map from MouseButton to externals created for every button.

signals :: Map MouseButton (Signal Bool, Bool -> IO ()) -> Signal (Map MouseButton Bool) Source

Creating the Signal of a Map from MouseButton to Bool from a Map of externals.

sinks :: Map MouseButton (Signal Bool, Bool -> IO ()) -> Map MouseButton (Bool -> IO ()) Source

Making a Map from MouseButton to sink from a Map of externals.