summaryrefslogtreecommitdiff
path: root/honey
diff options
context:
space:
mode:
Diffstat (limited to 'honey')
-rw-r--r--honey/window.lua4
1 files changed, 4 insertions, 0 deletions
diff --git a/honey/window.lua b/honey/window.lua
index 35e04ac..471d51e 100644
--- a/honey/window.lua
+++ b/honey/window.lua
@@ -147,6 +147,10 @@ function Window.setContentScaleCallback(self, cb)
return glfw.SetContentScaleCallback(self.win, cb)
end
+function Window.setKeyCallback(self, cb)
+ return glfw.SetKeyCallback(self.win, cb)
+end
+
function Window.swapBuffers(self)
glfw.SwapBuffers(self.win)