diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-24 23:56:18 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-24 23:56:18 -0500 |
commit | 9699a814395dd6344c0f2fab1965b8bed30967b2 (patch) | |
tree | 3fde9359241fb13cf1f84072c3642e0591ad92e0 /demo | |
parent | c2079561359aa6a3f658dd34b1b32dfd0761d730 (diff) |
add window focus callback functions
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 |