summaryrefslogtreecommitdiff
path: root/demo/vector/main.lua
diff options
context:
space:
mode:
Diffstat (limited to 'demo/vector/main.lua')
-rw-r--r--demo/vector/main.lua6
1 files changed, 3 insertions, 3 deletions
diff --git a/demo/vector/main.lua b/demo/vector/main.lua
index 2b29999..28090c6 100644
--- a/demo/vector/main.lua
+++ b/demo/vector/main.lua
@@ -1,6 +1,6 @@
require 'common'
-local window = honey.window
+local glfw = honey.glfw
local nvg = honey.nvg
@@ -17,8 +17,8 @@ end
local time = 0
local frames = 0
function honey.update(dt)
- if window.getKey(window.win, window.KEY_ESCAPE) == window.PRESS then
- window.setShouldClose(honey.window.win, true)
+ if glfw.GetKey(glfw.win, glfw.KEY_ESCAPE) == glfw.PRESS then
+ glfw.SetWindowShouldClose(glfw.win, true)
end
time = time + dt