From 09fa1809ab285d41180a5767d8cf408855986129 Mon Sep 17 00:00:00 2001 From: sanine Date: Sun, 7 May 2023 22:12:00 -0500 Subject: implement basic third-person camera --- honey/window.lua | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'honey/window.lua') diff --git a/honey/window.lua b/honey/window.lua index fa777d0..3b5d5c1 100644 --- a/honey/window.lua +++ b/honey/window.lua @@ -150,6 +150,14 @@ end function Window.setKeyCallback(self, cb) return glfw.SetKeyCallback(self.win, cb) end +function Window.setCursorPosCallback(self, cb) + return glfw.SetCursorPosCallback(self.win, cb) +end + + +function Window.setInputMode(self, mode, value) + return glfw.SetInputMode(self.win, mode, value) +end function Window.swapBuffers(self) -- cgit v1.2.1