diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-21 21:53:43 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-21 21:53:43 -0500 |
commit | 78553e775f618d20e328bc85c635fbab4bf43d60 (patch) | |
tree | 6821c5bad562617030e0208045491c98f4daf75d /demo/main.lua | |
parent | fd6e5bcef96ac5e769470823e24b984c9394bfd5 (diff) |
add table recurtion to honey_lua_create_table and fix input setup
Diffstat (limited to 'demo/main.lua')
-rw-r--r-- | demo/main.lua | 13 |
1 files changed, 7 insertions, 6 deletions
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 |