From 78553e775f618d20e328bc85c635fbab4bf43d60 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Wed, 21 Oct 2020 21:53:43 -0500 Subject: add table recurtion to honey_lua_create_table and fix input setup --- demo/main.lua | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) (limited to 'demo') diff --git a/demo/main.lua b/demo/main.lua index 8c0072f..ba548b9 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -1,14 +1,15 @@ -for key, value in pairs(honey.input.key) do +for key, value in pairs(honey.input) do print(key, value) end local total_time = 0 ---function honey.update(dt) --- total_time = total_time + dt --- print(dt) ---end --- +function honey.update(dt) + if honey.input.is_down(honey.input.key.a) then + print('a pressed!') + end +end + --function honey.draw() -- print('draw!') --end -- cgit v1.2.1