diff options
author | Joris Guyonvarch | 2015-03-17 21:26:40 +0100 |
---|---|---|
committer | Joris Guyonvarch | 2015-03-17 21:26:40 +0100 |
commit | 0075abf51db5d1b54117525d7a7f9b06e31c9484 (patch) | |
tree | ed7a5b8c3ac74113dca96463a41dcd00548d20c8 /src/Main.elm | |
parent | c3e8b1a4d428160976c5d9ad770763e8db02f3bc (diff) |
Adding an edition mode for a timer
Diffstat (limited to 'src/Main.elm')
-rw-r--r-- | src/Main.elm | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/src/Main.elm b/src/Main.elm index c2a7519..c2a327b 100644 --- a/src/Main.elm +++ b/src/Main.elm @@ -5,8 +5,12 @@ module Main import Signal import Html (Html) import Time (..) +import Mouse +import Debug +import Json.Encode (Value) import Model.Model (..) +import Model.Position (..) import Update.Update (..) import View.View (view) @@ -21,6 +25,15 @@ input = Signal.mergeMany [ Signal.subscribe updates , Signal.map DeltaTime (fps 30) + , Signal.map (\_ -> ReadOnly) clickAway ] +port clickPosition : Signal Value +port clickPosition = + Signal.sampleOn + Mouse.clicks + (Signal.map positionEncoder Mouse.position) + +port clickAway : Signal () + port initialTime : Time |