summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/main.lua10
1 files changed, 7 insertions, 3 deletions
diff --git a/demo/main.lua b/demo/main.lua
index ba548b9..ae0684e 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -4,10 +4,14 @@ end
local total_time = 0
+local a_func = function(action, data)
+ print('a: ', action)
+end
+
+honey.input.bind_key(honey.input.key.a, a_func)
+
function honey.update(dt)
- if honey.input.is_down(honey.input.key.a) then
- print('a pressed!')
- end
+
end
--function honey.draw()