aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--Spear/App/Input.hs11
1 files changed, 11 insertions, 0 deletions
diff --git a/Spear/App/Input.hs b/Spear/App/Input.hs
index 3a6090f..47e3139 100644
--- a/Spear/App/Input.hs
+++ b/Spear/App/Input.hs
@@ -63,6 +63,17 @@ data Input = Input
63 } 63 }
64 64
65 65
66-- | Return a dummy keyboard.
67--
68-- This function should be called to get an initial keyboard.
69--
70-- The returned keyboard has all of its keys unpressed.
71--
72-- For further keyboard updates, see 'getKeyboard'.
73newKeyboard :: Keyboard
74newKeyboard = const False
75
76
66-- | Get the keyboard. 77-- | Get the keyboard.
67getKeyboard :: IO Keyboard 78getKeyboard :: IO Keyboard
68getKeyboard = 79getKeyboard =