3{-| This is an early version of the touch library. It will likely grow to
4include gestures that would be useful for both games and web-pages.
17{-| Every `Touch` has `xy` coordinates. It also has an identifier
18`id` to distinguish one touch from another.
20A touch also keeps info about the initial point and time of contact:
21`x0`, `y0`, and `t0`. This helps compute more complicated gestures
22like taps, drags, and swipes which need to know about timing or direction.
24type Touch = { x:Int, y:Int, id:Int, x0:Int, y0:Int, t0:Time }
26{-| A list of ongoing touches. -}
27touches : Signal [Touch]
28touches = Native.Touch.touches
30{-| The last position that was tapped. Default value is `{x=0,y=0}`.
31Updates whenever the user taps the screen.
33taps : Signal { x:Int, y:Int }
34taps = Native.Touch.taps
keysesc to close
- j k
- move down, up
- enter
- open
- esc
- back, or up a level
- 1 2 3 4
- readme, files, commits, refs
- /
- filter
- y
- copy the clone command
- c
- compare the chosen commit with another (or shift-click both)
- ?
- show or hide this list