summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
Diffstat (limited to 'demo')
-rw-r--r--demo/main.lua11
1 files changed, 3 insertions, 8 deletions
diff --git a/demo/main.lua b/demo/main.lua
index 64ab0ae..e7f95c1 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -6,20 +6,15 @@ local a_func = function(action, data)
honey.window.set_fullscreen(fullscreen)
end
-local b_func = function(action, data)
- if (action == 0) then return end
+local resize_func = function(width, height, data)
local w, h = honey.window.get_size()
- print(w, h)
-end
-
-for k,v in pairs(honey.window) do
- print(k, v)
+ print('resized!', w, h)
end
honey.window.set_title('honey engine demo')
honey.input.bind_key(honey.input.key.a, a_func)
-honey.input.bind_key(honey.input.key.b, b_func)
+honey.window.resize_bind(resize_func)
function honey.update(dt)
end