Page 1 of 1

[Question] love.handlers

Posted: Fri Dec 28, 2012 8:19 pm
by lombardo2
I noted that love.run index a table stored in love.handlers with the event name and then calls the function it returns. What's exactly that table? Is love.keypressed just a shorthand for love.handlers.keypressed?. Thanks.

Re: [Question] love.handlers

Posted: Fri Dec 28, 2012 8:42 pm
by bartbes
love.handlers is a table of functions that conditionally call the associated callbacks. For example love.handlers.keypressed calls love.keypressed if it exists.