aboutsummaryrefslogtreecommitdiff
path: root/src/Main.elm
diff options
context:
space:
mode:
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