aboutsummaryrefslogtreecommitdiff
path: root/src/Main.elm
diff options
context:
space:
mode:
authorJoris Guyonvarch2015-03-18 00:32:17 +0100
committerJoris Guyonvarch2015-03-18 00:32:17 +0100
commit2613aeeae0f4de44842ff0e796603d0316a61a14 (patch)
tree722a21c69597e6d2547ad9f991e7c73afae78058 /src/Main.elm
parent0075abf51db5d1b54117525d7a7f9b06e31c9484 (diff)
Can edit the time, unfortunately the enter key is overriden so the '+' key of the numpad is used instead
Diffstat (limited to 'src/Main.elm')
-rw-r--r--src/Main.elm4
1 files changed, 3 insertions, 1 deletions
diff --git a/src/Main.elm b/src/Main.elm
index c2a327b..42bcbc4 100644
--- a/src/Main.elm
+++ b/src/Main.elm
@@ -6,8 +6,9 @@ import Signal
import Html (Html)
import Time (..)
import Mouse
-import Debug
import Json.Encode (Value)
+import Keyboard
+import Char
import Model.Model (..)
import Model.Position (..)
@@ -26,6 +27,7 @@ input =
[ Signal.subscribe updates
, Signal.map DeltaTime (fps 30)
, Signal.map (\_ -> ReadOnly) clickAway
+ , Signal.map KeyPressed Keyboard.lastPressed
]
port clickPosition : Signal Value