[Question] love.handlers

Questions about the LÖVE API, installing LÖVE and other support related questions go here.
Forum rules
Before you make a thread asking for help, read this.
Post Reply
lombardo2
Prole
Posts: 1
Joined: Fri Dec 28, 2012 8:13 pm

[Question] love.handlers

Post 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.
User avatar
bartbes
Sex machine
Posts: 4946
Joined: Fri Aug 29, 2008 10:35 am
Location: The Netherlands
Contact:

Re: [Question] love.handlers

Post 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.
Post Reply

Who is online

Users browsing this forum: Bing [Bot], Google [Bot] and 217 guests