nice way to make on.* handlers more discoverable
This commit is contained in:
parent
fdf4722d2a
commit
8b8e08c4d6
|
@ -0,0 +1 @@
|
|||
{"parent":0,"on":1}
|
|
@ -0,0 +1,17 @@
|
|||
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)
|
||||
}
|
1
live.lua
1
live.lua
|
@ -23,7 +23,6 @@ Live = {}
|
|||
|
||||
-- a namespace of frameworky callbacks
|
||||
-- these will be modified live
|
||||
-- TODO: how to make them discoverable?
|
||||
on = {}
|
||||
|
||||
-- ========= on startup, load the version at head
|
||||
|
|
Loading…
Reference in New Issue