diff --git a/0001-on b/0001-on index cb092dc..9c0d77f 100644 --- a/0001-on +++ b/0001-on @@ -4,15 +4,15 @@ on = { -- supported handlers: -- on.initialize (see love.load) -- on.quit - -- on.code_changed (runs after every time the driver sends a new definition) + -- on.code_change (runs after every time the driver sends a new definition) -- on.draw -- on.update -- on.resize - -- on.filedropped + -- on.file_drop -- on.focus - -- on.mouse_pressed (see love.mousepressed) - -- on.mouse_released (see love.mousereleased) - -- on.keychord_pressed (see keychord.lua in this repo) - -- on.textinput - -- on.key_released (see love.keyreleased) + -- on.mouse_press (see love.mousepressed) + -- on.mouse_release (see love.mousereleased) + -- on.keychord_press (see keychord.lua in this repo) + -- on.text_input (see love.textinput) + -- on.key_release (see love.keyreleased) } diff --git a/live.lua b/live.lua index b2294d5..fcadcf3 100644 --- a/live.lua +++ b/live.lua @@ -148,7 +148,7 @@ function live.update(dt) local buf = live.receive() if buf then live.run(buf) - if on.code_changed then on.code_changed() end + if on.code_change then on.code_change() end end Live.Previous_read = Current_time end diff --git a/main.lua b/main.lua index ceb9e5b..ff19378 100644 --- a/main.lua +++ b/main.lua @@ -80,7 +80,7 @@ function App.resize(w, h) end function App.filedropped(file) - if on.filedropped then on.filedropped() end + if on.file_drop then on.file_drop() end end function App.draw() @@ -105,12 +105,12 @@ end function App.mousepressed(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves - if on.mouse_pressed then on.mouse_pressed(x,y, mouse_button) end + if on.mouse_press then on.mouse_press(x,y, mouse_button) end end function App.mousereleased(x,y, mouse_button) Cursor_time = 0 -- ensure cursor is visible immediately after it moves - if on.mouse_released then on.mouse_released(x,y, mouse_button) end + if on.mouse_release then on.mouse_release(x,y, mouse_button) end end function App.focus(in_focus)