aboutsummaryrefslogtreecommitdiff
path: root/src/Input.elm
diff options
context:
space:
mode:
Diffstat (limited to 'src/Input.elm')
-rw-r--r--src/Input.elm13
1 files changed, 7 insertions, 6 deletions
diff --git a/src/Input.elm b/src/Input.elm
index 28fb2d1..9a88db6 100644
--- a/src/Input.elm
+++ b/src/Input.elm
@@ -1,16 +1,17 @@
module Input where
-import Char (toCode)
-import Keyboard (KeyCode, keysDown, arrows, isDown)
+import Char exposing (toCode)
+import Keyboard exposing (KeyCode, keysDown, arrows, isDown)
import Random
-import Time (Time, fps)
-import Signal (..)
+import Time exposing (Time, fps)
+import Signal exposing (..)
+import Set exposing (Set)
-import Model.Vec2 (Vec2)
+import Model.Vec2 exposing (Vec2)
type alias Input =
{ dir : Vec2
- , inputKeysDown : List KeyCode
+ , inputKeysDown : Set KeyCode
, delta : Time
}