diff options
Diffstat (limited to 'demo/main.lua')
-rw-r--r-- | demo/main.lua | 8 |
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) |