From ca8a44a0178f3e5d28972fb3ff63f825dbc93895 Mon Sep 17 00:00:00 2001 From: Dane Johnson Date: Wed, 13 Jan 2021 21:23:22 -0600 Subject: [PATCH] Proper rotation --- main.lua | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/main.lua b/main.lua index 63eb715..3013461 100644 --- a/main.lua +++ b/main.lua @@ -46,6 +46,7 @@ function update(delta) end function onkey(key, code, action, mod) + print(key, code, action, mod) if key == LEFT and action == 1 then vx = -1.0 elseif key == RIGHT and action == 1 then @@ -65,7 +66,7 @@ function onkey(key, code, action, mod) if key == Q then if action == 1 then cam_rot_x = 1.0 - else + elseif action == 0 then cam_rot_x = 0.0 end end