diff options
Diffstat (limited to 'demo')
-rw-r--r-- | demo/main.lua | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/demo/main.lua b/demo/main.lua index e7f95c1..9cae165 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -16,6 +16,14 @@ honey.window.set_title('honey engine demo') honey.input.bind_key(honey.input.key.a, a_func) honey.window.resize_bind(resize_func) + +local focus_func = function(focus) + print('focus:', focus) +end + +honey.window.focus_bind(focus_func) + + function honey.update(dt) end |