summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Thompson <dthompson2@worcester.edu>2014-11-29 13:44:02 -0500
committerDavid Thompson <dthompson2@worcester.edu>2014-11-29 13:44:02 -0500
commite372121ce523198bc40e3d15dbd48438c137cfcd (patch)
treef0f2304e58a3fb1a436d3df78a64b1f8263e5b6b
parent8d4bc7f387eadbd7379fbfb19484acd7985989b9 (diff)
input: keyboard: Reverse up/down in key-directions.
* sly/input/keyboard.scm (key-directions): Reverse up and down.
-rw-r--r--sly/input/keyboard.scm4
1 files changed, 2 insertions, 2 deletions
diff --git a/sly/input/keyboard.scm b/sly/input/keyboard.scm
index e197424..574375e 100644
--- a/sly/input/keyboard.scm
+++ b/sly/input/keyboard.scm
@@ -77,8 +77,8 @@ KEY is pressed or #f otherwise."
(signal-map (lambda (up? down? left? right?)
(vector2 (+ (if left? -1 0)
(if right? 1 0))
- (+ (if up? -1 0)
- (if down? 1 0))))
+ (+ (if up? 1 0)
+ (if down? -1 0))))
(key-down? up)
(key-down? down)
(key-down? left)