@@ -0,0 +1,29 @@
2+module Graphics.Input where
4+buttons : a -> { button : a -> String -> Element
8+button : String -> (Element, Signal ())
10+ let pool = buttons ()
11+ in (pool.button () txt, pool.events)
13+customButtons : a -> { button : a -> Element -> Element -> Element -> Element
17+customButton : Element -> Element -> Element -> (Element, Signal ())
18+customButton up hover down =
19+ let pool = customButtons ()
20+ in (pool.button () up hover down, pool.events)
22+checkBoxes : a -> { box : (Bool -> a) -> Bool -> Element
26+checkBox : Bool -> (Signal Element, Signal Bool)
28+ let cbs = checkBoxes b
29+ in (lift (cbs.box id) cbs.events, cbs.events)