local fullscreen = false local a_func = function(action, data) if (action == 0) then return end fullscreen = not fullscreen honey.window.set_fullscreen(fullscreen) end local resize_func = function(width, height, data) local w, h = honey.window.get_size() print('resized!', w, h) end honey.window.set_title('honey engine demo') honey.input.bind_key(honey.input.key.a, a_func) honey.window.resize_bind(resize_func) function honey.update(dt) end --function honey.draw() -- print('draw!') --end