From 3a414b52e2c94b866ae57876be6880a74f5f8ac8 Mon Sep 17 00:00:00 2001 From: mkosler Date: Tue, 21 Feb 2012 12:53:18 -0600 Subject: Made changing controls API a bit more understandable --- core.lua | 6 +++--- 1 file 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 -- cgit v1.2.3-70-g09d2