diff options
author | sanine-a <sanine.not@pm.me> | 2020-10-24 21:35:14 -0500 |
---|---|---|
committer | sanine-a <sanine.not@pm.me> | 2020-10-24 21:35:14 -0500 |
commit | 41ac253f743e464194587c3ecc0f2547c95d924d (patch) | |
tree | 3a922066ecdf24bc5c33e200585cd70ecf4e080a /demo/main.lua | |
parent | 27292f0d9ed90340792d4d065fefd2e4e248e4bd (diff) |
add window module and fullscreen toggle
Diffstat (limited to 'demo/main.lua')
-rw-r--r-- | demo/main.lua | 7 |
1 files changed, 3 insertions, 4 deletions
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() |