pothi.love/0001-on

22 lines
888 B
Plaintext
Raw Normal View History

on = {
-- for top-level handlers (see https://love2d.org/wiki/Main_Page for love.* variants)
-- supported handlers:
-- on.initialize (see love.load)
-- on.quit
2023-01-07 21:49:20 +00:00
-- on.code_change (runs after executing code received from the driver)
-- on.code_submit (runs after submitting code to the app; obviously only applicable when client app is itself a driver)
-- on.draw
-- on.update
-- on.resize
2022-12-24 04:30:35 +00:00
-- on.file_drop
-- on.focus
2022-12-24 04:30:35 +00:00
-- 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)
2023-01-02 02:22:52 +00:00
-- on.load_settings(settings) -- fan out settings table into any other global state
-- on.save_settings() -- return a settings table which will be persisted to disk across restart
}