From 9699a814395dd6344c0f2fab1965b8bed30967b2 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 24 Oct 2020 23:56:18 -0500 Subject: add window focus callback functions --- demo/main.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'demo') 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 -- cgit v1.2.1