nice way to make on.* handlers more discoverable

[?]
Nov 27, 2022, 10:54 PM
5OVKHVY6TJK53NCEUGSFBMHDENBJ25IEZNBWCI6QRCRLRKG5K7NAC

Dependencies

  • [2] LRDM35CE app running again
  • [3] TBWAE64A app is now live, can communicate with driver
  • [*] OTIBCAUJ love2d scaffold
  • [*] YJ6ASFBG yet another fork trying to integrate my live framework with everything else
  • [*] JOPVPUSA editing source code from within the app
  • [*] R5QXEHUI somebody stop me

Change contents

  • edit in main.lua at line 46
    [6.112]
    [7.187463]
    if on.initialize then on.initialize(arg) end
  • edit in live.lua at line 26
    [2.1624][2.1624:1664]()
    -- TODO: how to make them discoverable?
  • replacement in head at line 1
    [2.10815][2.10816:10818]()
    0
    [2.10815]
    1
  • file addition: 0001-on (----------)
    [8.2]
    on = {
    -- for top-level handlers (see https://love2d.org/wiki/Main_Page for love.* variants)
    -- supported handlers:
    -- on.initialize (see love.load)
    -- on.quit
    -- on.draw
    -- on.update
    -- on.resize
    -- on.filedropped
    -- 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)
    }
  • file addition: 0001-manifest (----------)
    [8.2]
    {"parent":0,"on":1}