diff options
Diffstat (limited to 'demo')
-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 |