From 41ac253f743e464194587c3ecc0f2547c95d924d Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sat, 24 Oct 2020 21:35:14 -0500 Subject: add window module and fullscreen toggle --- demo/main.lua | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'demo/main.lua') diff --git a/demo/main.lua b/demo/main.lua index 0d22d95..6f6439f 100644 --- a/demo/main.lua +++ b/demo/main.lua @@ -2,17 +2,16 @@ for key, value in pairs(honey.input) do print(key, value) end -local total_time = 0 +local fullscreen = false local a_func = function(action, data) - print('a: ', action) + fullscreen = not fullscreen + honey.window.set_fullscreen(fullscreen) end honey.input.bind_key(honey.input.key.a, a_func) -honey.input.bind_key() function honey.update(dt) - end --function honey.draw() -- cgit v1.2.1