custom events
Posted: Sat Sep 09, 2017 6:59 pm
so on the love.event page https://love2d.org/wiki/love.event it says
It is possible to define new events by appending the table love.handlers. Such functions can be invoked as usual, via love.event.push using the table index as an argument.
i thought maybe this was a table i could access using table.insert(love.handlers,) or something along these lines. I'm having trouble finding any more documentation, or comments, or any other information regarding it.
I'm trying to make custom events that I can push when a button has been clicked (think gui not keyboard).
hopefully I've worded this clearly enough.
thanks
It is possible to define new events by appending the table love.handlers. Such functions can be invoked as usual, via love.event.push using the table index as an argument.
i thought maybe this was a table i could access using table.insert(love.handlers,) or something along these lines. I'm having trouble finding any more documentation, or comments, or any other information regarding it.
I'm trying to make custom events that I can push when a button has been clicked (think gui not keyboard).
hopefully I've worded this clearly enough.
thanks