summaryrefslogtreecommitdiff
path: root/demo
diff options
context:
space:
mode:
authorsanine-a <sanine.not@pm.me>2020-10-25 10:43:43 -0500
committersanine-a <sanine.not@pm.me>2020-10-25 10:43:43 -0500
commit6162a18f445b89400be521fdeeb0d6a812a03c35 (patch)
treeceac6ed3692d863966408e5991e7075d87a6f7b3 /demo
parent9699a814395dd6344c0f2fab1965b8bed30967b2 (diff)
move honey_window_information to common.h and add mouse movement functions
Diffstat (limited to 'demo')
-rw-r--r--demo/main.lua8
1 files changed, 7 insertions, 1 deletions
diff --git a/demo/main.lua b/demo/main.lua
index 9cae165..26fabd9 100644
--- a/demo/main.lua
+++ b/demo/main.lua
@@ -11,10 +11,16 @@ local resize_func = function(width, height, data)
print('resized!', w, h)
end
+local mousemove = function(x, y)
+ print(x, y)
+end
+
honey.window.set_title('honey engine demo')
-honey.input.bind_key(honey.input.key.a, a_func)
+honey.input.key.bind(honey.input.key.a, a_func)
honey.window.resize_bind(resize_func)
+honey.input.mouse.set_mode( honey.input.mouse.mode.disabled )
+honey.input.mouse.bind_movement(mousemove)
local focus_func = function(focus)