aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authormkosler <marekkpie@gmail.com>2012-02-21 12:53:18 -0600
committermkosler <marekkpie@gmail.com>2012-02-21 12:53:18 -0600
commit3a414b52e2c94b866ae57876be6880a74f5f8ac8 (patch)
treee0ed269472512699560dea8825773c02f94ae4d0
parentd51babb366d1a46ebe978111ad0b31bfddf95913 (diff)
downloadQuickie-3a414b52e2c94b866ae57876be6880a74f5f8ac8.tar.gz
Quickie-3a414b52e2c94b866ae57876be6880a74f5f8ac8.tar.bz2
Quickie-3a414b52e2c94b866ae57876be6880a74f5f8ac8.tar.xz
Quickie-3a414b52e2c94b866ae57876be6880a74f5f8ac8.zip
Made changing controls API a bit more understandable
-rwxr-xr-xcore.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/core.lua b/core.lua
index 168fd2d..f6b0d16 100755
--- a/core.lua
+++ b/core.lua
@@ -43,9 +43,9 @@ function keyboard.pressed(key, code)
keyboard.code = code
end
-function keyboard.controls(ctrl)
- keyboard.ctrl.up = ctrl.up
- keyboard.ctrl.down = ctrl.down
+function keyboard.controls(up, down)
+ keyboard.ctrl.up = up
+ keyboard.ctrl.down = down
end