From 6162a18f445b89400be521fdeeb0d6a812a03c35 Mon Sep 17 00:00:00 2001 From: sanine-a Date: Sun, 25 Oct 2020 10:43:43 -0500 Subject: move honey_window_information to common.h and add mouse movement functions --- demo/main.lua | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'demo') 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) -- cgit v1.2.1